# PhotoMap Hints (iOS: Objective-C) ## Max quota reached? --> Create a new free developer account here (https://developer.foursquare.com/) ## If your Mapview is not loading --> PLEASE DISABLE VPN --> Then you need to close Xcode and simulator and relaunch everything ## Why is the `popToViewController` method not showing up? How do I access it? Try doing this `[self.navigationController p... ]` you will see popToViewController appear. :) The view controller is in a navigation controller if you look at your storyboard. Notice the [Apple Documenation](https://developer.apple.com/documentation/uikit/uinavigationcontroller/1621871-poptoviewcontroller?language=objc) tells you it is in a navigation stack which your view controller is contained in. ## Milestone 2 - Creating MapView map now showing up If you completed the first few steps properly and added `#import <MapKit/MapKit.h>` to the top of `PhotoMapViewController.m`. along with //one degree of latitude is approximately 111 kilometers (69 miles) at all times. MKCoordinateRegion sfRegion = MKCoordinateRegionMake(CLLocationCoordinate2DMake(37.783333, -122.416667), MKCoordinateSpanMake(0.1, 0.1)); [self.mapView setRegion:sfRegion animated:false]; in **viewDidLoad** and you are getting the following error: `2019-11-10 00:21:41.567416+0100 Post DACH[20420:264466] libMobileGestalt MobileGestalt.c:1647: Could not retrieve region info` and your mapView looks like this: ![](https://i.imgur.com/EOJJpPl.png) ### Run the app on your simulator! ### If you don't have USB-C cable get off the FB VPN!!!! --- ## When adding the protocol method in the LocationsViewController.h file I get the following error: ![](https://i.imgur.com/yhvkVyG.png) Did you make sure to add the `@class LocationsViewController;` line before the protocal is declared? ## I can't access - `(void)locationsViewController:(LocationsViewController *)controller didPickLocationWithLatitude:(NSNumber *)latitude longitude:(NSNumber *)longitude;` in the method file Remember how we call the delegate methods.... it goes something like `[self.delegate methodName]` ## My annotation isn't showing on the map? Set break points for when the annotation is being added to the map. Do some NSLogs to print its being added. Also hint is your UIImage named "camera" actually the correct name --> check your assets folder! String literals can mess you up sometimes. If that asset isn't named the same way, then it won't show up and could already be there. ## Having trouble setting the Custom Image for the Pin to be your resized thumbnail? [Check out this on stack overflow](https://stackoverflow.com/questions/9814988/mkmapview-instead-of-annotation-pin-a-custom-view)