开发者

Display the map to fit all the screen of the iPhone

开发者 https://www.devze.com 2023-03-25 03:39 出处:网络
i do this in order to display the map : [self setMapView:[[[RMMapView alloc]initWithFrame:CGRectMake(0.0, 0.0, 400, 200)]autorelease]];

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号