Skip to content

UIAlertController封装工具,方便快捷初始化UIAlertController。

License

Notifications You must be signed in to change notification settings

linsaw/ABAlertHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ABAlertHelper

使用也很简单,看例子

[ABAlertHelper alertWithTitle:YTLocalizedString(@"定位服务未开启") message:YTLocalizedString(@"请在系统设置中开启定位服务") cancelActionTitle:YTLocalizedString(@"暂不") destructiveActionTitle:nil actionClick:^(UIAlertAction *action, NSInteger index) {
   if (index == 1) {
      NSURL *openUrl = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
      if ([[UIApplication sharedApplication] canOpenURL:openUrl]) {
         [[UIApplication sharedApplication] openURL:openUrl];
      }
   }
} otherActionTitles:YTLocalizedString(@"去设置"), nil];

额外补充

待定。。。。。。

About

UIAlertController封装工具,方便快捷初始化UIAlertController。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published