0

I created an app in Xcode 4.1 and now i upgraded it to 4.2 so i could use the iPhone 5 simulator. I have an app that uses a tab bar to loads 3 views. They load correctly in iPhone 4 but in iPhone 5 simulator that doesn´t happen. I´m able to see my xib (with no content) that i load initially, but there are no tabs to choose from.

Apple made some changes in the projects in Xcode 4.2. Now they have storyboards which i don´t have because i created the app in Xcode 4.1. Anyone knows a work-around this?

The only code i think it may be usefull..

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [window addSubview:montraViewController.view]; [self.window makeKeyAndVisible]; return YES; } 
2
  • some code would be nice I think Commented Dec 19, 2011 at 16:18
  • I can tell you that your concern about storyboards is a false lead; both Xcode 4.2 and iOS 5 work perfectly with a NIB approach. I recall that some of the technically illegal uses of tab controllers are actually illegal as of iOS 5 though, especially when trying to much about with the view controller hierarchy — could you give us some specifics on your usage there? Commented Dec 19, 2011 at 16:55

1 Answer 1

2

I was loading the view in viewDidAppear, that method was triggered when the view appeared in iOS 4 but in iOS 5 that didn´t happen. So i changed my "load controls" to the method viewDidLoad and they loaded correctly. Don´t take this has a bug, because it´s more probable to be bad programing.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.