IOS8 获取当前电量信息
io_service_t powerSource = IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching("IOPMPowerSource"));CFNumberRef currentCapacityNum = (CFNumberRef)IORegistryEntryCreateCFProperty(powerSource, CFSTR(kIOPMPSCurrentCapacityKey), kCFAllocatorDefault, 0);
都转到移动平台了啊。为何我还在windows 平台挣扎。并连个样子都木有 喊 。牛逼啊!!
页:
[1]