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

  • ADDVOiCE

    ADDVOiCE

    28 Mayıs 2009
  • Bad Lip Reading

    Bad Lip Read

    22 Mart 2011
  • Feel The Electricity!

    Feel The Ele

    20 ŞUBAT 2010