Latest 1.0.0
Homepage https://github.com/GREENBANYAN/NSAuthorityManager
License MIT
Platforms ios 8.0, requires ARC
Authors

NSAuthorityManager ©GREENBANYAN

NSAuthorityManage,是一个iOS设备权限管理器,可以用它来做更友好的设备权限交互体验。

你可以参考periscope提示设备权限的UI来完成自己的权限提示
,你也可以自己设计一个UI来完成它。

代码目录

  • NSAuthorityStatus
  • NSAuthoritySingleton
  • NSAuthorityProtocol
  • NSAuthorityManager

    Example

    例如请求开启一个相机权限:

    if([NSAuthorityManager isObtainPHPhotoAuthority]){
    NSLog(@"已经开启相机权限");
    }else{
    [[NSAuthorityManager sharedInstance]obtainPHPhotoAuthorizedStatus];
    }

    Installation

    pod 'NSAuthorityManager'
    

简书

Latest podspec

{
    "name": "NSAuthorityManager",
    "version": "1.0.0",
    "summary": "iOS Equipment Authorization Management.",
    "description": "You Can Use 'NSAuthorityManager' to manager your equipment authorization.",
    "homepage": "https://github.com/GREENBANYAN/NSAuthorityManager",
    "license": "MIT",
    "authors": {
        "GREENBANYAN": "@[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/GREENBANYAN/NSAuthorityManager",
        "tag": "1.0.0"
    },
    "source_files": "NSAuthorityManager/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This