Tuesday, July 17, 2012

Infinite loop due to loadView.


o prevent an infinite loop from happening in viewDidLoad, you should override loadView method in your .m

With following piece of code:

- (void)loadView
{
      [super loadView];

}
By overriding, the control will not execute viewDidLoad multiple times.

No comments:

Post a Comment