I\'m fairly new to UI programming on the Mac and iPhone, and I\'ve run across something that somewhat puzzles me.
A UIViewController has 3 methods that involve the i
-(void)awakeFromNib
{
}
is only called if you are using story board to store the ViewController drawn in story board Nib---means interface bundle.
the proper sequence is
-(void)initWithCoder
-(void)awakefromNib //(if story board is used)
or
-(void)loadView----() //if manually generating the view contoller
-(void)viewDidLoad-----(called only once in the life cycle of viewController)
-(void)viewWillAppear
-(void)viewDidAppear
While moving to a new ViewController
-(void)viewWillDisappear
-(void)viewDidDisappear
While returning to the first ViewController
-(void)viewWillAppear
-(void)viewDidAppear