SORU
5 Mart 2012, PAZARTESİ


Bir film şeridi buluyor?

Bir film şeridi gelen olay arasında bağlantı kurmak, ya da bir film şeridi görünümünde bir denetleyici Bir film şeridi gömmek mümkün mü? UINavigationController UITabBarController Bir yere ihtiyacım var ve onlara güzel ve ayrı tutmak istiyorum.

CEVAP
7 Mart 2012, ÇARŞAMBA


Evet, ama bu program aracılığıyla yapmak zorunda:

// Get the storyboard named secondStoryBoard from the main bundle:
UIStoryboard *secondStoryBoard = [UIStoryboard storyboardWithName:@"secondStoryBoard" bundle:nil];

// Load the initial view controller from the storyboard.
// Set this by selecting 'Is Initial View Controller' on the appropriate view controller in the storyboard.
UIViewController *theInitialViewController = [secondStoryBoard instantiateInitialViewController];
//
// **OR**  
//
// Load the view controller with the identifier string myTabBar
// Change UIViewController to the appropriate class
UIViewController *theTabBar = (UIViewController *)[secondStoryBoard instantiateViewControllerWithIdentifier:@"myTabBar"];

// Then push the new view controller in the usual way:
[self.navigationController pushViewController:theTabBar animated:YES];

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Adam Outler

    Adam Outler

    19 EKİM 2006
  • AndroidSale

    AndroidSale

    17 NİSAN 2011
  • theKGB65

    theKGB65

    24 Aralık 2007