guilhermearaujo / GUITabPagerViewController

MIT License
454 stars 69 forks source link

UIView Events Forwards #1

Closed loretoparisi closed 9 years ago

loretoparisi commented 9 years ago

The base class GUITabPagerViewController UIViewController does not forwards UIViewController display events:

-(void)viewDidAppear:(BOOL)animated; -(void)viewDidDisappear:(BOOL)animated;

etc.

guilhermearaujo commented 9 years ago

The default return value for - (BOOL)shouldAutomaticallyForwardAppearanceMethods is YES. Since the class does not override this method, the events are automatically forwarded. This is what I understand from the documentation.

loretoparisi commented 9 years ago

thanks I will check it out

litoarias commented 9 years ago

For what the instantiate view controllers pass for life cycle it's necessary create property of view controller and instantiate view controller and return in method viewControllerAtIndex:, for more information you can see http://stackoverflow.com/questions/27086747/how-do-i-add-multiple-viewcontrollers-to-my-uipageviewcontroller