美文网首页
iOS10 相关问题(隐私获取)

iOS10 相关问题(隐私获取)

作者: 嘹亮的浩哥 | 来源:发表于2016-09-30 11:14 被阅读43次

    iOS10关于隐私获取

    一、iOS 10 隐私权限配置
    在iOS 10中,访问隐私权限需要在info.plist文件中进行配置,否则会崩溃。
    Value值是提示给用户的,必须添加。(除非不想审核通过)
    info.plist文件中进行配置如下:
    
    snip.png
    Tables Are Cool
    col 3 is right-aligned $1600
    col 2 is centered $12
    zebra stripes are neat $1

    key -- value

    key value
    NSPhotoLibraryUsageDescription 是否允许访问相册?
    Privacy - Camera Usage Description 是否允许需要访问相机?
    Privacy - Location Usage Description 是否允许需要访问位置?
    Privacy - Location When In Use Usage Description 是否允许使用期间访问位置?
    Privacy - Location Always Usage Description 是否允许始终访问位置?
    Privacy - Bluetooth Peripheral Usage Description 是否允许访问蓝牙?
    Privacy - Reminders Usage Description 是否允许访问提醒事项?
    Privacy - Motion Usage Description 是否允许访问运动与健康?
    Privacy - Media Library Usage Description 是否允许访问媒体资料库?
    Privacy - Microphone Usage Description 是否允许访问麦克风?
    Privacy - Calendars Usage Description 是否允许访问日历?

    二、iOS10空间UILabel显示不全.

    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10, 20, 300, 40)];
    
     [self.view addSubview:label]; label.text = @"字体随系统字体变化"; 
    
    // 1. 设置 font 大小 label.font = [UIFont preferredFontForTextStyle:UIFontTextStyleBody]; 
    
    // 2. 允许调整大小 label.adjustsFontForContentSizeCategory = YES;
    
    

    相关文章

      网友评论

          本文标题:iOS10 相关问题(隐私获取)

          本文链接:https://www.haomeiwen.com/subject/tyilyttx.html