Skip to content

一个简单的权限框架,首次启动应用程序,然后依次请求所需的权限。

Notifications You must be signed in to change notification settings

YangsCalvin/SimplePermission

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CocoPods集成:

pod 'SimplePermission'

效果演示

demo-gif

暗黑模式适配

light_screenshotsdark_screenshots

使用方法

UIImage *seletedImage = [UIImage systemImageNamed:@"checkmark.seal.fill"];
        
NSDictionary *music_dict = [NSDictionary dictionaryWithObjects:@[
    [UIImage systemImageNamed:@"camera.fill"],
    seletedImage,
    @"手机相机",
    @"APP需要您的同意,才能访问相机进行拍摄商品信息,如禁止将无法拍照拍摄图片无法更新信息",
    @(SimplePermissionType_Camera)]
    forKeys:@[
    @"iconImage",
    @"selectedImage",
    @"name",
    @"describe",
    @"type"]];

[SimplePermission showAuthorizeControllerWithType:@[music_dict] toViewController:self];

About

一个简单的权限框架,首次启动应用程序,然后依次请求所需的权限。

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published