ios12新功能
官方文档
更改Api
从iOS开发者的角度来看,更关心的是iOS12新开放的特性和API, 以及系统底层的优化和技术实现
分类 | 方法 | 状态 |
---|---|---|
NSKeyedArchiver | init(requiringSecureCoding:) | Add |
archivedData(withRootObject:requiringSecureCoding:) | Add | |
init() | deprecated | |
init(forWritingWith:) | deprecated | |
archivedData(withRootObject:) | deprecated | |
archiveRootObject(_:toFile:) | deprecated | |
NSKeyedUnarchiver | unarchivedObject(ofClass:from:) | Add |
unarchivedObject(ofClasses:from:) | Add | |
unarchiveObject(with:) | deprecated | |
unarchiveTopLevelObjectWithData(_:) | deprecated | |
unarchiveObject(withFile:) | deprecated | |
ValueTransformer | NSSecureUnarchiveFromDataTransformer | Add |
unarchiveFromDataTransformerName | deprecated | |
keyedUnarchiveFromDataTransformerName | deprecated | |
UserDefaults | synchronize() | NoNeed will be deprecated |
CFPreferencesAppSynchronize(_:) | NoNeed will be deprecated | |
CFPreferencesSynchronize(_:_:_:) | NoNeed will be deprecated | |
NS_CLOSED_ENUM | Add | |
NSBundleResourceRequest | Modify | |
CFMessagePortSetName(_:_:) | will be deprecated | |
UIWebView | All | deprecated |
UIWebView已弃用