码迷,mamicode.com
首页 > 其他好文 > 详细

判断是不是模拟机

时间:2014-10-10 17:45:34      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   io   ar   sp   div   on   cti   

 

直接上代码啦!!!

 

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.title=@"判断是否是模拟机";
    [self isSimulator];
}
#pragma -mark -functions
-(void)isSimulator
{
    if (TARGET_IPHONE_SIMULATOR) {
        NSLog(@"是模拟机");
    }else{
        NSLog(@"不是模拟机");
    }

}

 

判断是不是模拟机

标签:style   blog   color   io   ar   sp   div   on   cti   

原文地址:http://www.cnblogs.com/yang-guang-girl/p/4016040.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!