开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜