1. Get the operator to import
#import <CoreTelephony/CTCarrier.h>
#import <CoreTelephony/CTTelephonyNetworkInfo.h>
2. The code is as follows
Device Unique identifier
NSString *IDENTIFIERSTR = [[[Uidevice Currentdevice] Identifierforvendor] uuidstring];
NSLog (@ "Device Unique identifier:%@", IDENTIFIERSTR);
Phone aliases: User-defined names
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
Http://www.cnblogs.com/KennyHito/p/6860437.html
Local model (internationalized region name)
nsstring* Localphonemodel = [[Uidevice currentdevice] Localizedmodel];
NSLog (@ "internationalized Zone Name:%@", Localphonemodel);
Nsdictionary *infodictionary = [[NSBundle mainbundle] infodictionary];
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);
CGRect rect = [[UIScreen mainscreen] bounds];
Cgsize size = rect.size;
CGFloat width = size.width;
CGFloat height = size.height;
NSLog (@ "Physical size:%.0fx%.0f", width,height);
CGFloat scale_screen = [UIScreen mainscreen].scale;
NSLog (@ "Resolution is:%.0fx%.0f", Width*scale_screen, Height*scale_screen);
Cttelephonynetworkinfo *info = [[Cttelephonynetworkinfo alloc] init];
Ctcarrier *carrier = Info.subscribercellularprovider;
NSLog (@ "Carrier:%@", carrier.carriername);
Get phone-related parameter information in IOS development