// // CCUIScreen.h // CCFC // // Created by xichen on 11-12-16. // copyright 2011年 ccteam. All rights reserved. // #import <Foundation/Foundation.h> // the width and height of the screen #define MACRO_SCREEN_WIDTH ([[UIScreen mainScreen] bounds].size.width) #define MACRO_SCREEN_HEIGHT ([[UIScreen mainScreen] bounds].size.height) #define MACRO_APP_FRAME [[UIScreen mainScreen] applicationFrame] #define MACRO_MAIN_SCREEN_RECT CGRectMake(0,MACRO_SCREEN_WIDTH,MACRO_SCREEN_HEIGHT) #ifndef MACRO_FULL_SCREEN #define MACRO_FULL_SCREEN [[UIScreen mainScreen] bounds] #endif #define MACRO_DEFAULT_STATUSBAR_HEIGHT 20 #define MACRO_DEFAULT_NAVIGATIONBAR_HEIGHT 44 #define MACRO_DEFAULT_SCREEN_WIDTH 320 #define MACRO_DEFAULT_SCREEN_HEIGHT 480 #define MACRO_DEFAULT_TAB_BAR_HEIGHT 49 #define MACRO_DEFAULT_TAB_BAR_ICON_WIDTH 30 #define MACRO_DEFAULT_TAB_BAR_ICON_HEIGHT 30 #define MACRO_PPI_ON_IPHONE4 326 #define MACRO_PPI_UNDER_IPHONE4 163 #define MACRO_DEFAULT_IPAD_SCR_WIDTH 768 #define MACRO_DEFAULT_IPAD_SCR_HEIGHT 1024 @interface UIScreen(cc) - (CGFloat)width; - (CGFloat)height; - (CGFloat)appWidth; - (CGFloat)appHeight; @end
可能有更新:
googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCUIScreen.h
github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCUIScreen.h
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。