获取ios设备电量


[UIDevice currentDevice].batteryMonitoringEnabled = YES;

double deviceLevel = [UIDevice currentDevice].batteryLevel;



你可能感兴趣的:(IOS)