UIAlertView-NSErrorAddition 1.0.1

UIAlertView-NSErrorAddition 1.0.1

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布上次发布2016 年 5 月

azuakuraru 维护。




UIAlertView + NSError 分类库。

img

安装

用法

您可以尝试它

pod try UIAlertView-NSErrorAddition

基本用法。

NSDictionary *userInfo = @{
    NSLocalizedDescriptionKey : @"Network Error",
    NSLocalizedFailureReasonErrorKey : @"Doesn't connect to network",
    NSLocalizedRecoverySuggestionErrorKey : @"Reload page after check the network.",
    NSLocalizedRecoveryOptionsErrorKey : @[@"OK"]
};

NSError *error = [NSError errorWithDomain:[[NSBundle bundleForClass:[self class]] bundleIdentifier] code:0 userInfo:userInfo];
UIAlertView *alertView = [[UIAlertView alloc] initWithError:error];
[alertView show];

每个键映射到 UIAlertView 的各个部分。

img

详细说明

贡献

  1. 叉它!
  2. 创建您的功能分支: git checkout -b my-new-feature
  3. 提交您的更改: git commit -am '添加一些功能'
  4. 推送至分支: git push origin my-new-feature
  5. 提交拉取请求 :D

许可证

MIT