In IOS 4.x or lower, viewDidAppear method is not getting called while adding subview to a view, why?
问题 In iOS 4.x or lower, viewDidAppear and viewWillAppear, viewDidDisappear and viewWillDisappear, such ViewController's delegate methods are not getting called. The same methods work fine with the iOS 5.x. Why? Is it a bug in iOS 4.x or lower. Because in iOS 5.x all those methods gets called in proper manner and sequence. Thanks in advance, Mrunal 回答1: For IOS4.x i use the UINavigationController delegate methods like this: -(void)navigationController:(UINavigationController *