判断设备是否为Simulator
if ([[[UIDevice currentDevice] model] rangeOfString:@"Sim"].location == NSNotFound) { // TODO } else { NSLog(@"iPhone Simulator can't use this funciton"); }
posted on 2014-01-23 15:09 MoreNotepad++ 阅读(93) 评论(0) 收藏 举报
--------活出自己的精彩。
if ([[[UIDevice currentDevice] model] rangeOfString:@"Sim"].location == NSNotFound) { // TODO } else { NSLog(@"iPhone Simulator can't use this funciton"); }
posted on 2014-01-23 15:09 MoreNotepad++ 阅读(93) 评论(0) 收藏 举报