2

I'm using Xcode 4.2. I set the deployment target as 4.2. I created an app with the view hierarchy as UIViewController > UITabBarController > UINavigationController > UIViewController.It is working fine with iOS 5. But for iOS 4.2, the viewWillAppear method is not getting called. what would be the reason for this?

Rui Peres
  • 25,741
  • 9
  • 87
  • 137
SINDHYA PETER
  • 965
  • 9
  • 35
  • Quick question, you have an UITabBarController inside an UIViewController? Why? – Rui Peres Jan 27 '12 at 08:33
  • I had the same issue. Check this, http://stackoverflow.com/questions/8089287/in-ios-4-x-or-lower-viewdidappear-method-is-not-getting-called-while-adding-sub – Mrunal Jan 27 '12 at 08:42

1 Answers1

4

When you have a custom UIViewController as top level VC, you need to pass the viewWillAppear event to the UITabBarController

Tomen
  • 4,854
  • 5
  • 28
  • 39