UIAlertView + NSError 分类库。
您可以尝试它
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 的各个部分。
git checkout -b my-new-feature
git commit -am '添加一些功能'
git push origin my-new-feature
MIT