leeks
leeks

Reputation: 67

MK MapView on iPhone App

The app I am developing uses a tab bar with a Map View. The problem is the tab bar blocks out the Google Maps logo at the bottom left hand corner. How do I set the height and width of the Map View to ensure that the Google logo is visible? I've tried adjusting the Map View on IB but the size doesn't seem to change as the logo is still blocked from view. Can anyone help?

Upvotes: 1

Views: 1682

Answers (1)

Dan Ray
Dan Ray

Reputation: 21893

You can always set the frame programmatically.

//create a map view to talk about, though you're probably getting it via your .xib
MKMapView *map = [[MKMapView alloc] init]; 
map.frame = CGRectMake(0, 0, 320, 300); //that's x, y, width, height

You'd probably want to do that in -viewDidLoad.

Upvotes: 1

Related Questions