- 浏览: 906382 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (466)
- iPhone, iOS , Objective-c (155)
- 数据库 (20)
- 设计模式 (5)
- 第三方包管理,cocoapod (2)
- 版本管理, SVN, Subversion, Git (1)
- Google, Android, Java (14)
- Wordpress (1)
- 职业素养 (3)
- 版本管理,git (3)
- 前端小技巧 (2)
- flash (1)
- javascript (5)
- Ruby (0)
- 编程语言 (1)
- 网络常识 (1)
- 找到生活好感觉 (5)
- 产品经理 (1)
- markdown (1)
- 云服务器 (1)
- iPhone (116)
- iOS (116)
- Objective-c (116)
- 学习技巧 (2)
- Google (5)
- Android (6)
- Java (21)
- python (1)
- sqlite (3)
- node.js (2)
- mongodb (2)
- 学习技巧,阅读 (2)
- 软件测试 (3)
- 架构设计 (2)
- 设计 (1)
- Spring framework (3)
- junit (1)
- Linux (2)
- 软件 (1)
- Struts2 (1)
- 版本管理 (3)
- SVN (3)
- Subversion (3)
- Git (3)
- mysql (5)
- quartz (1)
- 无关技术 (1)
- 前端 (1)
- Redis (1)
- 产品管理 (0)
- 计算机常识 (1)
- 计算机科学 (0)
- swift (1)
- 服务器 (2)
- 搜索 (1)
- Scala (1)
- J2EE (1)
- maven (1)
- 前端css (1)
- 英语 (1)
- 消息队列 (1)
- kafka (0)
- apache kafka (4)
- netbeans (1)
- IDE (2)
- 歌词 (1)
- 过滤器实现 (1)
- linux vim vi (1)
- jmeter (1)
- springcloud (1)
最新评论
-
hujingnemo:
不知道为什么打不开
CHM如何改编字体大小 -
weiboyuan:
求答案 weiboyuanios@163.com
iOS软件工程师面试题(高级) -
xueji5368:
这个现在已经广泛使用了嘛!
RoboGuice入门 -
Yao__Shun__Yu:
...
CHM如何改编字体大小 -
353144886:
非常之详细 美女求认识
sqlite数据类型 datetime处理
User info dictionary keys
These keys may exist in the user info dictionary.
NSString * const NSLocalizedDescriptionKey;
NSString * const NSErrorFailingURLStringKey;
NSString * const NSFilePathErrorKey;
NSString * const NSStringEncodingErrorKey;
NSString * const NSUnderlyingErrorKey;
NSString * const NSURLErrorKey;
NSString * const NSLocalizedFailureReasonErrorKey;
NSString * const NSLocalizedRecoverySuggestionErrorKey;
NSString * const NSLocalizedRecoveryOptionsErrorKey;
NSString * const NSRecoveryAttempterErrorKey;
NSString * const NSHelpAnchorErrorKey;
NSString * const NSURLErrorFailingURLErrorKey;
NSString * const NSURLErrorFailingURLStringErrorKey;
NSString * const NSURLErrorFailingURLPeerTrustErrorKey;
Constants
NSLocalizedDescriptionKey
The corresponding value is a localized string representation of the error that, if present, will be returned by localizedDescription.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSErrorFailingURLStringKey
The corresponding value is the URL that caused the error. This key is only present in the NSURLErrorDomain. (Deprecated. This constant is deprecated in OS X v10.6, and is superseded by NSURLErrorFailingURLStringErrorKey.)
This constant is deprecated in OS X v10.6, and is superseded by NSURLErrorFailingURLStringErrorKey. Both constants refer to the same value for backward-compatibility, but the new symbol name has a better prefix.
Available in iOS 2.0 and later.
Deprecated in iOS 4.0.
Declared in NSURLError.h.
NSFilePathErrorKey
Contains the file path of the error.
The corresponding value is an NSString object.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSStringEncodingErrorKey
The corresponding value is an NSNumber object containing the NSStringEncoding value.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSUnderlyingErrorKey
The corresponding value is an error that was encountered in an underlying implementation and caused the error that the receiver represents to occur.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSURLErrorKey
The corresponding value is an NSURL object.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSLocalizedFailureReasonErrorKey
The corresponding value is a localized string representation containing the reason for the failure that, if present, will be returned by localizedFailureReason.
This string provides a more detailed explanation of the error than the description.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSLocalizedRecoverySuggestionErrorKey
The corresponding value is a string containing the localized recovery suggestion for the error.
This string is suitable for displaying as the secondary message in an alert panel.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSLocalizedRecoveryOptionsErrorKey
The corresponding value is an array containing the localized titles of buttons appropriate for displaying in an alert panel.
The first string is the title of the right-most and default button, the second the one to the left, and so on. The recovery options should be appropriate for the recovery suggestion returned by localizedRecoverySuggestion.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSRecoveryAttempterErrorKey
The corresponding value is an object that conforms to the NSErrorRecoveryAttempting informal protocol.
The recovery attempter must be an object that can correctly interpret an index into the array returned by recoveryAttempter.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSHelpAnchorErrorKey
The corresponding value is an NSString containing the localized help corresponding to the help button. See helpAnchor for more information.
Available in iOS 4.0 and later.
Declared in NSError.h.
NSURLErrorFailingURLErrorKey
The corresponding value is an NSURL containing the URL which caused a load to fail. This key is only present in the NSURLErrorDomain.
Available in iOS 4.0 and later.
Declared in NSURLError.h.
NSURLErrorFailingURLStringErrorKey
The corresponding value is an NSString object for the URL which caused a load to fail. This key is only present in the NSURLErrorDomain.
This constant supersedes NSErrorFailingURLStringKey, which was deprecated in OS X v10.6. Both constants refer to the same value for backward-compatibility, but this symbol name has a better prefix.
Available in iOS 4.0 and later.
Declared in NSURLError.h.
NSURLErrorFailingURLPeerTrustErrorKey
The corresponding value is the SecTrustRef object representing the state of a failed SSL handshake. This key is only present in the NSURLErrorDomain.
Available in iOS 3.0 and later.
Declared in NSURLError.h.
These keys may exist in the user info dictionary.
NSString * const NSLocalizedDescriptionKey;
NSString * const NSErrorFailingURLStringKey;
NSString * const NSFilePathErrorKey;
NSString * const NSStringEncodingErrorKey;
NSString * const NSUnderlyingErrorKey;
NSString * const NSURLErrorKey;
NSString * const NSLocalizedFailureReasonErrorKey;
NSString * const NSLocalizedRecoverySuggestionErrorKey;
NSString * const NSLocalizedRecoveryOptionsErrorKey;
NSString * const NSRecoveryAttempterErrorKey;
NSString * const NSHelpAnchorErrorKey;
NSString * const NSURLErrorFailingURLErrorKey;
NSString * const NSURLErrorFailingURLStringErrorKey;
NSString * const NSURLErrorFailingURLPeerTrustErrorKey;
Constants
NSLocalizedDescriptionKey
The corresponding value is a localized string representation of the error that, if present, will be returned by localizedDescription.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSErrorFailingURLStringKey
The corresponding value is the URL that caused the error. This key is only present in the NSURLErrorDomain. (Deprecated. This constant is deprecated in OS X v10.6, and is superseded by NSURLErrorFailingURLStringErrorKey.)
This constant is deprecated in OS X v10.6, and is superseded by NSURLErrorFailingURLStringErrorKey. Both constants refer to the same value for backward-compatibility, but the new symbol name has a better prefix.
Available in iOS 2.0 and later.
Deprecated in iOS 4.0.
Declared in NSURLError.h.
NSFilePathErrorKey
Contains the file path of the error.
The corresponding value is an NSString object.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSStringEncodingErrorKey
The corresponding value is an NSNumber object containing the NSStringEncoding value.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSUnderlyingErrorKey
The corresponding value is an error that was encountered in an underlying implementation and caused the error that the receiver represents to occur.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSURLErrorKey
The corresponding value is an NSURL object.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSLocalizedFailureReasonErrorKey
The corresponding value is a localized string representation containing the reason for the failure that, if present, will be returned by localizedFailureReason.
This string provides a more detailed explanation of the error than the description.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSLocalizedRecoverySuggestionErrorKey
The corresponding value is a string containing the localized recovery suggestion for the error.
This string is suitable for displaying as the secondary message in an alert panel.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSLocalizedRecoveryOptionsErrorKey
The corresponding value is an array containing the localized titles of buttons appropriate for displaying in an alert panel.
The first string is the title of the right-most and default button, the second the one to the left, and so on. The recovery options should be appropriate for the recovery suggestion returned by localizedRecoverySuggestion.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSRecoveryAttempterErrorKey
The corresponding value is an object that conforms to the NSErrorRecoveryAttempting informal protocol.
The recovery attempter must be an object that can correctly interpret an index into the array returned by recoveryAttempter.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSHelpAnchorErrorKey
The corresponding value is an NSString containing the localized help corresponding to the help button. See helpAnchor for more information.
Available in iOS 4.0 and later.
Declared in NSError.h.
NSURLErrorFailingURLErrorKey
The corresponding value is an NSURL containing the URL which caused a load to fail. This key is only present in the NSURLErrorDomain.
Available in iOS 4.0 and later.
Declared in NSURLError.h.
NSURLErrorFailingURLStringErrorKey
The corresponding value is an NSString object for the URL which caused a load to fail. This key is only present in the NSURLErrorDomain.
This constant supersedes NSErrorFailingURLStringKey, which was deprecated in OS X v10.6. Both constants refer to the same value for backward-compatibility, but this symbol name has a better prefix.
Available in iOS 4.0 and later.
Declared in NSURLError.h.
NSURLErrorFailingURLPeerTrustErrorKey
The corresponding value is the SecTrustRef object representing the state of a failed SSL handshake. This key is only present in the NSURLErrorDomain.
Available in iOS 3.0 and later.
Declared in NSURLError.h.
发表评论
-
UIImage变为NSData并进行压缩
2014-05-19 20:23 1938//sdk中提供了方法可以直接调用 UIImage *im ... -
update cocapods
2014-05-17 22:27 809早上更新cocoapod依赖库,发现更新到32.1版本,早先的 ... -
iOS发送短信息代码实例
2014-05-16 18:15 2689#import <MessageUI/Message ... -
DISPATCH TIMER
2014-05-14 16:12 733/* __block void (^callback) ... -
UITextField左边显示图片
2014-05-13 18:08 1175The overlay view displayed on t ... -
iOS调用系统打电话,发短信功能
2014-05-11 15:48 2089先介绍一种最简单的方法: 调用打电话功能 [[UIAppl ... -
iOS面试题
2014-05-09 16:10 10821.写一下UIButton与UITableView的层级结构 ... -
socket二进制报文
2014-05-09 15:18 1309里面有帧头 字符串UTF-8 中间用0隔开 又一个字符串 ... -
将网站添加到桌面的方法
2014-05-08 14:25 1664<link href="http://www. ... -
iPhone通讯录联系人操作大全
2014-05-07 10:29 14641.需要引入AddressBook.framework框架 2 ... -
sqlite获取最新插入的rowid
2014-05-07 09:59 1531除了 last_insert_rowid select max ... -
号码归属地查询,拨打电话
2014-05-06 15:07 854在程序内调用拨打电话的方法,[[UIApplication s ... -
iOS时间合并
2014-04-28 17:55 1102合并同一时间的课程,同一时间可能有多个课程,比如13:30-1 ... -
vCard通讯录格式说明
2014-04-28 16:47 2564原帖:http://freesoftman.iteye.com ... -
UISearchBar背景色全套解决方案
2014-04-25 09:36 7448os系统升级到7.1后,原来在7.0下显示正常的UISearc ... -
升级XCode5.1.1遇到的奇葩问题NSString,NSObjectRuntime.h报错,Foundation找不到
2014-04-24 11:19 903升级XCode5.1.1遇到的奇葩问题NSString,NSO ... -
将NSString转为NSArray
2014-04-22 16:52 6274// Your JSON data: NSString *c ... -
另外一种NSData转为NSString的方法
2014-04-22 15:40 1216If the data is not null-termina ... -
HTTP,Socket,WebSocket异同
2014-04-18 16:54 1837参考文章: http://abbshr.g ... -
push隐藏UINavigtaionBar和UITabbar
2014-04-17 15:20 1098[self.navigationController setN ...
相关推荐
newManagedObject.setValue(value, forKey: key) } } do { try managedObjectContext.save() return newManagedObject } catch let error as NSError { print("Could not save. \(error), \(error.userInfo)...
- (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error { // 注册失败处理 } ``` 极光推送支持自定义payload,开发者可以在推送消息中添加额外的...
如果验证失败,我们抛出一个错误,阻止数据的保存。 除了基本的验证,还可以通过监听`NSManagedObjectContextObjectsDidChange`通知来实现更复杂的数据一致性验证。例如,你可能希望在保存数据前检查实体之间的关系...
IsOpenSDK通常会提供错误回调,例如`- (void)onSDKError:(NSError *)error`,你可以在这里处理SDK使用过程中出现的错误。同时,为了调试方便,可以开启SDK的日志输出,通过`[IsOpenSDK setLogLevel:...
throw NSError(domain: "InvalidData", code: 1, userInfo: [NSLocalizedDescriptionKey: "Name is required"]) } if name.isEmpty { throw NSError(domain: "InvalidData", code: 2, userInfo: ...
*error = [NSError errorWithDomain:@"NSCocoaErrorDomain" code:-1 userInfo:[NSDictionary dictionaryWithObject:@"方法替换失败" forKey:NSLocalizedDescriptionKey]]; return NO; } } @end ``` 这段代码定义...
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler { // 处理接收到的推...
fatalError("Unresolved error \(error), \(error.userInfo)") } } return container }() ``` ### 5. 使用Managed Object Context `ManagedObjectContext`是操作数据的核心。你可以通过`insertNewObject(for...
fatalError("Unresolved error \(error), \(error.userInfo)") } } } var context: NSManagedObjectContext { return container.viewContext } } // 创建新的对象 let context = PersistenceController....
`@objc`属性包装器使得属性能够被KVC(Key-Value Coding)访问,而`@NSManaged`则告诉编译器这些属性是由Core Data管理的。 总结一下,Swift 3.0在Core Data的使用上提供了更加简洁的语法,包括创建和管理实体、...
NSError *error = [NSError errorWithDomain:@"ParseError" code:0 userInfo:@{NSLocalizedDescriptionKey : @"Failed to parse JSON"}]; completion(nil, error); } } failure:^(NSURLSessionDataTask * _...
completion(nil, NSError(domain: "", code: -1, userInfo: [NSLocalizedDescriptionKey: "无法获取图片"])) return } let fileURL = asset.value(forKey: "filename") as? String completion(fileURL, nil) ...
NSLog(@"错误信息:%@", error.userInfo); } else { [self presentViewController:storeVC animated:YES completion:nil]; } }]; } ``` 4. 实现`SKStoreProductViewControllerDelegate`的方法`...