I was doing some iOS 5 tutorials and in several tutorials, it says things like “Add at end of viewWillAppear” or “Modify viewWillDisappear” in MasterViewController.m but in my project, MasterViewController.m does not have any of those methods.
Since it doesn’t say “create those methods”, I’m guessing they are automatically created by something but I do not know what I need to do to make them appear in MasterViewController.m.
Please somebody help me?
These methods are typically inherited from a parent class (e.g.,
UIViewController). What you probably should do is add something likeThe method prototype was taken from Apple’s documentation of
UIViewController; depending on the class you’re subclassing (the thing after the colons in the.hfile, in the@interfaceline) you might need different method prototypes.