#import <sys/utsname.h>
NSString*
machineName()
{
struct utsname systemInfo;
uname(&systemInfo);
return [NSString stringWithCString:systemInfo.machine
encoding:NSUTF8StringEncoding];
}
sonucu olmalıdır: Ben bu son için @ "iPhone5,1" gibi bir şey dönecektir farz ediyorum
@"i386" on the simulator
@"iPod1,1" on iPod Touch
@"iPod2,1" on iPod Touch Second Generation
@"iPod3,1" on iPod Touch Third Generation
@"iPod4,1" on iPod Touch Fourth Generation
@"iPhone1,1" on iPhone
@"iPhone1,2" on iPhone 3G
@"iPhone2,1" on iPhone 3GS
@"iPad1,1" on iPad
@"iPad2,1" on iPad 2
@"iPhone3,1" on iPhone 4
@"iPhone4,1" on iPhone 4S
modeli. Sonra sadece bu
Programı yolu açıktır çalışır bana bildirin
gibi bir kontrolü yap. "Apple tarafından onaylanmış" bir şey olabilir mi? @xxx name, vb ile görüntülere sahip olmak gibi –
Tüm arka plan bir görüntü olduğunu mu söylüyorsunuz? – TheJer
olduğunu varsayalım :) –