现在的位置: 首页 > 综合 > 正文

获取整个设备的大小

2014年03月04日 ⁄ 综合 ⁄ 共 173字 ⁄ 字号 评论关闭

    CGRect  screenBounds = [[UIScreen
mainScreen]
bounds];  
//iphone(320,480)返回整个屏幕的边界,包括状态栏所显示的空间

    CGRect bounds = [[UIScreen
mainScreen]
applicationFrame]; 
//iphone(320,460)返回屏幕的可显示区域




抱歉!评论已关闭.