我知道这听起来像是一个奇怪的问题,但我不想落在这个问题上。我已经读过,如果我使用没有记录的东西,我可能会被 Apple 拒绝,要获得我使用的 iphone 类型:
//get iphone kind
-(NSString*) machineName
{
struct utsname systemInfo;
uname(&systemInfo);
return [NSString stringWithCString:systemInfo.machine
encoding:NSUTF8StringEncoding];
}
我可以用这个吗?[UIDevice device]
不能这样做,有没有更好的方法?