ios 获取ios系统信息

- (void)viewDidLoad {

    [super viewDidLoad];

    // Do any additional setup after loading the view, typically from a nib.


    NSString * systemVersion =[[UIDevice currentDevice]systemVersion];

    NSLog(@"系统版本---%@",systemVersion);

    

    NSString * systemModel =[[UIDevice currentDevice]model];

    NSLog(@"iphone or ipad ----%@",systemModel);

    

    NSDictionary * dic =[[NSBundle mainBundle]infoDictionary];

    NSLog(@"获取info-plist----%@",dic);

    

    NSString * appName =[dic objectForKey:@"CFBundleIdentifier"];

    NSLog(@"获取Bundle Identifier---%@",appName);

    

}

你可能感兴趣的:(iOS源码)