2011-10-03 26 views

回答

2

型號產品:

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

IOS版本:

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

運營商名稱(的iOS 4.0及以上):

#import <CoreTelephony/CTTelephonyNetworkInfo.h> 
#import <CoreTelephony/CTCarrier.h> 

CTTelephonyNetworkInfo *netInfo = [[CTTelephonyNetworkInfo alloc] init]; 
CTCarrier *carrier = [netInfo subscriberCellularProvider]; 
NSString *carrierName = [carrier carrierName]; 
[netInfo release]; 
+0

非常感謝! :) –

相關問題