随笔分类 -  iphone中的宏

sdk中的宏定义
摘要:判断运行在那种设备上:UI_USER_INTERFACE_IDIOM()UI_USER_INTERFACE_IDIOM() ([[UIDevice currentDevice] respondsToSelector:@selector(userInterfaceIdiom)] ? [[UIDevice currentDevice] userInterfaceIdiom] : UIUserInterfaceIdiomPhone)定义在UIKit库的UIDevice.h中,(ios3.2以下的系统中没有userInterfaceIdiom属性,所以用这宏判断)(UIUserInterfaceIdi 阅读全文
posted @ 2012-04-16 22:24 月光的尽头 编辑