获取iOS设备型号iphone ipad
摘要:#import //获得设备型号 -(NSString *)getCurrentDeviceModel { int mib[2]; size_t len; char *machine; mib[0] = CTL_HW; mib[1] = HW_MACHINE; sysctl(mib, 2, NULL, &len, NULL, 0);...
阅读全文
iOS开发,用了ARC,引入非ARC的第三方,报错
摘要:ARC forbids explicit message sendof'dealloc' 在xcode中,打开“Build Setting”,找到“Objective-C Automatic Reference Counting”项,将它的值设置成“NO”,即可。 如果未找到“Objective-C
阅读全文