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)];