Swift3:
dispatchQueue.main.async(execute: {
})
Swift2:
dispatch_async(dispatch_get_main_queue(),{
})
TimeInterval–swift3
NSTimeInterval–swift2
fileprivate-swift3
private-swift2
Data-swift3
NSData-swift2
URL-swift3
NSURL-swift2
UserDefaults-swift3
NSUserDefaults-swift2
URLSessionDataTask-swift3
NSURLSessionDataTask-swift2
httpURLResponse-swift3
NShttpURLResponse-swift2
JsONSerialization-swift3
NSJsONSerialization-swift2
ComparisonResult-swift3
NSComparisonResult-swift2
VIEwController.present-swift3
VIEwController.presentVIEwController-swift2
[UIApplicationLaunchOptionsKey: Any]-swift3
[NSObject : AnyObject]-swift2
UIScreen.main.bounds-swift3
UIScreen.mainScreen().bounds-swift2
overrIDe func observeValue(forKeyPath keyPath: String?,of object: Any?,change: [NSkeyvalueChangeKey : Any]?,context: UnsafeMutableRawPointer?)–swift3
overrIDe func observeValueForKeyPath(keyPath: String?,ofObject object: AnyObject?,change: [String : AnyObject]?,context: UnsafeMutablePointer)—swift2
func application(_ application: UIApplication,dIDRegister notificationSettings: UIUserNotificationSettings)-swift3
func application(application: UIApplication,dIDRegisterUserNotificationSettings notificationSettings: UIUserNotificationSettings) -swift2
[AnyHashable: Any]-swift3
[NSObject : AnyObject]-swift2
func getUserInfo(withUserID userID: String!,completion: ((RCUserInfo?) -> VoID)!) -swift3
func getUserInfoWithUserID(userID: String!,completion: ((RCUserInfo!) -> VoID)!)-swift2
UIApplication.shared.delegate -swift3
UIApplication.sharedApplication().delegate-swift2
NSArray? .object(at: 1)-swift3
NSArray .objectAtIndex(1)-swift2
Any -swift3
AnyObject-swift2
fileManager.default.urls(for: .documentDirectory,in: .userDomainMask)[0]-swift3
NSfileManager.defaultManager().URLsForDirectory(.documentDirectory,inDomains: .UserDomainMask)[0]-swift2
UItableVIEwCellAccessoryType.none-swift3
UItableVIEwCellAccessoryType.None-swift2
func numberOfSections(in tableVIEw: UItableVIEw) -> Int –swift3
func numberOfSectionsIntableVIEw(tableVIEw: UItableVIEw) -> Int —swift2
DateFormatter-swift3
NSDateFormatter-swift2
UIbarbuttonItemStyle.plain –swift3
UIbarbuttonItemStyle.Plain -swift2
IndexPath-swift3
NSIndexPath -swift2
tableVIEw.dequeueReusableCell(withIDentifIEr: cellIDentifIEr)-swift3
tableVIEw.dequeueReusableCellWithIDentifIEr(cellIDentifIEr)–swift2
tableVIEw.numberOfRows(inSection: 0) -swift3
tableVIEw.numberOfRowsInSection(0)-swift2
overrIDe var canBecomeFirstResponder : Bool {
return true
}-swift3
overrIDe func canBecomeFirstResponder() -> Bool {
return true
}–swift2
var hasText : Bool {
return nextTag > 1 ? true : false
}-swift3
func hasText() -> Bool {
return nextTag > 1 ? true : false
}-swift2
guard let value = element.value as? Int8,value != 0 else { return IDentifIEr }–swift3
guard let value = element.value as? Int8 where value != 0 else { return IDentifIEr }-swift2
func functionname(_ user: String)–swift3
func functionname(user: String)–swift2
tableVIEw.register( –swift3 tableVIEw.registerClass( –swift2
总结以上是内存溢出为你收集整理的swift 3, swift2全部内容,希望文章能够帮你解决swift 3, swift2所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)