快速类别,以解释如何正确启用您的隐私设置
DBPrivacyHelper 是一个简单的 UIViewController 分类,并且它有简单的集成方法
- (void) openHelper {
[self showPrivacyHelperForType:DBPrivacyTypeLocation];
}
- (void) openHelperToCustomize {
[self showPrivacyHelperForType:DBPrivacyTypeLocation controller:^(DBPrivateHelperController *vc) {
//customize the view controller to present
} didPresent:^{
//customize the completion block of presentViewController:animated:completion:
} didDismiss:^{
//customize the completion block of dismissViewControllerAnimated:completion:
} useDefaultSettingPane:YES];
}
如果 useDefaultSettingPane:
设置为 YES,DBPrivacyHelper 将在 iOS 8 中打开默认设置面板。如果您想看到所有 iOS 的 DBPrivateHelperController
,则设置为 NO。
隐私设置类型
7.0
0.6.2