I’m stuck on this challenge. The challenge is to “Add another view controller to the tab bar controller. This new view controller should display an MKMapView that shows the users location.”
First thing I do is go into HypnoTimeAppDelegate.m and add a third view controller with the line :
Then on the next line I make sure to add *vc3 to the array of view controllers :
Then I create a new file using the UIViewController subclass template. This creates 3 files, MyMapViewController.m , MyMapViewController.h and MyMapViewController.XIB
I then make sure to #import the new view controller in HypnoTimeAppDelegate.m at the top along with the others (#import “MyMapViewController.h”)
Now when I build I get no errors, but when I build & run, it dumps me into an error message in main that say "Thread 1 : Program received signal : SIGABRT. It doesn’t give any useful clues as to what went wrong.
So I create a breakpoint between the lines where I am creating the view controllers. I put the breakpoint at the line UIViewController *vc2 = [[CurrentTimeViewController alloc] init];
which is just before the point at which I started adding stuff. But then Build & Run does the exact same thing.
Can anyone help or offer advice? I don’t know how to troubleshoot this.