一、设备接口集合
1.调节设备屏幕亮度(真机有效)
[[UIScreen mainScreen] setBrightness:value]; (0=<value<=1)
2.调节设备音量(真机有效)
[[MPMusicPlayerController applicationMusicPlayer] setVolume:value]; (0=<value<=1)
3.拨号(真机有效)
3.1 直接通过UIApplication 的openURL方式拨号:
NSString *telURLString = [NSString stringWithFormat: @"tel:%@",numberString];
NSURL *phoneURL = [NSURL URLWithString:telURLString];
[[UIApplication sharedApplication] openURL:phoneURL];
使用这种方式拨号结束后不会自动返回原应用,而是停留在通讯录界面
3.2 使用webview 间接拨号:
NSString *telURLString = [NSString stringWithFormat: @"tel:%@",numberString];
NSURL *phoneURL = [NSURL URLWithString:telURLString];
if (!_phoneCallWebView) {
_pho