我已经编写了获取物理内存的代码。请告诉我它是否正确?
-(uint64_t)returnPhysicalMemory
{
uint64_t phy = HW_MEMSIZE;
NSNumber *bobsNumber=[NSNumber numberWithUnsignedLong:phy];
return phy;
}
我已经编写了获取物理内存的代码。请告诉我它是否正确?
-(uint64_t)returnPhysicalMemory
{
uint64_t phy = HW_MEMSIZE;
NSNumber *bobsNumber=[NSNumber numberWithUnsignedLong:phy];
return phy;
}
通过以下链接。
http://iphonesdkdev.blogspot.in/2009/01/source-code-get-hardware-info-of-iphone.html
希望它能解决你的问题。