2

Got exc_bad_access (code=2 address=0xc) error at following line

createMeetUPViewController = [[CreateMeetupViewController alloc] init];
[self.navigationController pushViewController:createMeetUPViewController animated:YES];

While I am trying to navigate from one viewcontroller to next viewcontroller I got this error.Please help.Thank you in advance.

iSmita
  • 1,292
  • 1
  • 9
  • 24

2 Answers2

0

I declared property and synthesise for view controller and it works.

iSmita
  • 1,292
  • 1
  • 9
  • 24
-1

Did you forget to call the [super loadview] in the loadView of your controller. I did this before, and when I add this to the loadView it worked.