iphone - viewWillAppear only being called once -
here's scenario, switchviewcontroller view added main window. switchviewcontroller main view, if want go view b, addsubview of view b, there isn't need remove switchviewcontroller's view right? issue after go view b switchviewcontroller's view, method viewwillappear not being called anymore.
why so?
viewwillappear:
not called automatically when view removed or added view hierarchy. responsibility of view controller call @ right time. built-in view controller classes whenever present or push new view controller. since not use mechanism in app, method doesn't called (unless call yourself).
Comments
Post a Comment