--Updated with new findings -- Tested in both simulator and on device. Maps are not loaded correctly when the app is run from a cold start. Tiles are not being displayed.
<
I Think you should try By removing
- (void)viewDidLayoutSubviews
{
[super viewDidLayoutSubviews];
}
and Putting following code into your View Didload Method
CGFloat edge = 10.0f;
UIImage *gotoUserLocationButtonImage = self.gotoUserLocationButton.imageView.image;
self.gotoUserLocationButton.frame = CGRectMake(edge, edge + self.statusBarHeight, gotoUserLocationButtonImage.size.width, gotoUserLocationButtonImage.size.height);
UIImage *getDirectionsButtonImage = self.getDirectionsButton.imageView.image;
[self.getDirectionsButton setFrame:CGRectMake(CGRectGetMaxX(self.gotoUserLocationButton.frame), edge + self.statusBarHeight, getDirectionsButtonImage.size.width, getDirectionsButtonImage.size.height)];