摘要: 判断你的程序是否运行在iPhone还是iPad上BOOL deviceIsPad() {#ifdef __IPHONE_3_2return UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad;#elsereturn NO;#endif}用下面这种方式判断当前使用的是哪个固件版本的硬件。。#import "UIDeviceHardware.h"#include#include@implementation UIDeviceHardware- (NSString *) platform{size_t size;sysctlb 阅读全文
posted @ 2012-09-29 14:57 mobileworm 阅读(277) 评论(0) 推荐(0)