简体   繁体   中英

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?

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM