NSString *model= [[UIDevice currentDevice] model]; NSString *iPhoneSimulator = @”iPhone Simulator”; if ([model compare:iPhoneSimulator] == NSOrderedSame){ //device is simulator }
No comments:
Post a Comment