iphone-common-codes-ccteam源代码 CCUIScreen.m

//  
// CCUIScreen.m
// CCFC
//
// Created by xichen on 11-12-16.
// Copyright 2011年 ccteam. All rights reserved.
//


#import "CCUIScreen.h"




@implementation UIScreen(cc)


- (CGFloat)width
{
return [[UIScreen mainScreen] bounds].size.width;
}


- (CGFloat)height
{
return [[UIScreen mainScreen] bounds].size.height;
}


- (CGFloat)appWidth
{
return [[UIScreen mainScreen] applicationFrame].size.width;
}


- (CGFloat)appHeight
{
return [[UIScreen mainScreen] applicationFrame].size.height;
}


@end

 

可能有更新:

googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCUIScreen.m

github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCUIScreen.m

 

posted @ 2012-01-12 09:44  cc_team  阅读(196)  评论(0编辑  收藏  举报