iphone-common-codes-ccteam源代码 CCOrientation.h

//
// CCOrientation.h
// CCFC
//
// Created by xichen on 11-12-17.
// Copyright 2011年 ccteam. All rights reserved.
//


#import <Foundation/Foundation.h>


// 增加设备翻转的回调
#define ADD_ORITENTATION_NOTIFICATION(idName, selectorName, objectInfo) \
[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications]; \
[[NSNotificationCenter defaultCenter] addObserver:(idName) selector:(selectorName) \
name:@"UIDeviceOrientationDidChangeNotification" object:(objectInfo)];


@interface CCOrientation : NSObject
{

}


@end

 

可能有更新:

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

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

 

posted @ 2012-01-02 15:35  cc_team  阅读(145)  评论(0编辑  收藏  举报