-
// 獲取當前App的基本信息字典
- NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
- //app名稱
- NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];
- // app版本
- NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
- // app build版本
- NSString *app_build = [infoDictionary objectForKey:@"CFBundleVersion"];
- //手機序列號
- NSString* identifierNumber = [[UIDevice currentDevice] uniqueIdentifier];
- //手機別名: 用戶定義的名稱
- NSString* userPhoneName = [[UIDevice currentDevice] name];
- //設備名稱
- NSString* deviceName = [[UIDevice currentDevice] systemName];
- //手機系統版本
- NSString* phoneVersion = [[UIDevice currentDevice] systemVersion];
- //手機型號
- NSString* phoneModel = [[UIDevice currentDevice] model];
- //地方型號 (國際化區域名稱)
- NSString* localPhoneModel = [[UIDevice currentDevice] localizedModel];
-
IOS獲取當前App的基本信息
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.