- Nsdictionary *infodictionary = [[NSBundle mainbundle] infodictionary];
- Cfshow (infodictionary);
- App Name
- NSString *app_name = [infodictionary objectforkey:@"Cfbundledisplayname"];
- //App version
- NSString *app_version = [infodictionary objectforkey:@"cfbundleshortversionstring"];
- //App build version
- NSString *app_build = [infodictionary objectforkey:@"Cfbundleversion"];
- //Phone serial number
- nsstring* identifiernumber = [[Uidevice currentdevice] uniqueidentifier];
- NSLog (@"mobile serial Number:%@", identifiernumber);
- //Phone alias: User-defined name
- nsstring* userphonename = [[Uidevice currentdevice] name];
- NSLog (@"phone alias:%@", userphonename);
- //Device name
- nsstring* devicename = [[Uidevice currentdevice] systemName];
- NSLog (@"Device Name:%@", devicename);
- //Mobile phone system version
- nsstring* phoneversion = [[Uidevice currentdevice] systemversion];
- NSLog (@"mobile phone system version:%@", phoneversion);
- //Phone model
- nsstring* Phonemodel = [[Uidevice currentdevice] model];
- NSLog (@"mobile phone Model:%@", Phonemodel);
- //local model (internationalized region name)
- nsstring* Localphonemodel = [[Uidevice currentdevice] Localizedmodel];
- NSLog (@"internationalized Zone Name:%@", Localphonemodel);
- Nsdictionary *infodictionary = [[NSBundle mainbundle] infodictionary];
- //Current app name
- NSString *appcurname = [infodictionary objectforkey:@"Cfbundledisplayname"];
- NSLog (@"Current application name:%@", appcurname);
- //Current application version such as: 1.0.1
- NSString *appcurversion = [infodictionary objectforkey:@"cfbundleshortversionstring"];
- NSLog (@"Current application software version:%@", appcurversion);
- //Current app version number int type
- NSString *appcurversionnum = [infodictionary objectforkey:@"Cfbundleversion"];
- NSLog (@"Current application version number:%@", appcurversionnum);
IOS gets information about the current app and user information: version number mobile phone number model