提交 b4d423f6 编写于 作者: Y yixiang

app信息页面 权限可以直接跳转到权限设置页面进行设置

上级 d94982e0
......@@ -42,7 +42,21 @@
NSString *value = data[@"value"];
self.titleLabel.text = title;
self.valueLabel.text = value;
NSString *cnValue = nil;
if([value isEqualToString:@"NotDetermined"]){
cnValue = @"用户没有选择";
}else if([value isEqualToString:@"Restricted"]){
cnValue = @"家长控制";
}else if([value isEqualToString:@"Denied"]){
cnValue = @"用户没有授权";
}else if([value isEqualToString:@"Authorized"]){
cnValue = @"用户已经授权";
}else{
cnValue = value;
}
self.valueLabel.text = cnValue;
[self.titleLabel sizeToFit];
[self.valueLabel sizeToFit];
......
......@@ -247,6 +247,15 @@
return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
if(indexPath.section == 2){
NSURL * url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
if([[UIApplication sharedApplication] canOpenURL:url]) {
NSURL*url =[NSURL URLWithString:UIApplicationOpenSettingsURLString];
[[UIApplication sharedApplication] openURL:url];
}
}
}
@end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册