0
工作我使用UIDeviceListener主(https://github.com/eldade/UIDeviceListener)用於獲取batteryCount,batterymaximumCapacity但聽者類不會被調用的類。UIDeviceListener不是在iOS的10
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(listenerDataUpdated:) name: kUIDeviceListenerNewDataNotification object:nil];
請爲我提供在iOS10中獲取電池詳細信息的解決方案。
如果我使用由於IOKit,應用程序將在AppStore的拒絕? –
它可能會被拒絕是 –
我不想取電池狀態和電量百分比,我只是想獲取CycleCount的 –