2018年4月13日 星期五

get mode name

#import <sys/utsname.h>

    struct utsname systemInfo;
    uname(&systemInfo);
    NSString *currentDeviceModel = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding];

沒有留言:

張貼留言