Thursday, March 15, 2012

Infinite loop due to loadView.

To 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