Display the map to fit all the screen of the iPhone
i do this in order to display the map :
[self setMapView:[[[RMMapView alloc]initWithFrame:CGRectMake(0.0, 0.0, 400, 200)]autorelease]];
th开发者_高级运维e 400 and 200 values are for width and height, i need to change it to fit all the screen, thanx in advance :)
You could probably google the dimensions of an iPhone screen, but here they are: 480x320pt including status bar. The status bar is 20pt.
You can also ask [UIApplication sharedApplication].keyWindow for its frame.
精彩评论