获取整个设备的大小

来源:互联网 发布:数据驱动安全2.0 编辑:程序博客网 时间:2024/05/16 01:25

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

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




原创粉丝点击