//4.0 Notification.Name.UIKeyboardWillHide //change to //4.2 UIResponder.keyboardWillHideNotification //4.0 Notification.Name.UIKeyboardWillChangeFrame //4.2 UIResponder.keyboardWillChangeFrameNotification //4.0 Notification.Name.UIApplicationWillResignActive //4.2 UIApplication.willResignActiveNotification //4.0 let keyboardScreenEndFrame = (userInfo[UIKeyboardFrameEndUserInfoKey] as! NSValue).cgRectValue //4.2 let keyboardScreenEndFrame = (userInfo[UIResponder.keyboardFrameEndUserInfoKey] as! NSValue).cgRectValue
Update the delegate methods. //4.0 func mediaPicker(mediaPicker: MPMediaPickerController!, didPickMediaItems mediaItemCollection: MPMediaItemCollection!) { //4.2 func mediaPicker(_ mediaPicker: MPMediaPickerController, didPickMediaItems mediaItemCollection: MPMediaItemCollection) { //4.0 func mediaPickerDidCancel(mediaPicker: MPMediaPickerController!) { //4.2 func mediaPickerDidCancel(_ mediaPicker: …
I was getting this error and this fixed it. //4.0 func locationManager(manager: CLLocationManager!, didUpdateLocations locations: [AnyObject]!) { //4.2 func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { If this helped you, …
//4.0 let notification = CKNotificationInfo() //4.2 let notification = CKSubscription.NotificationInfo() If this helped you, share and pass it on! 😀 ➡️ 🐦
//4.0 var recordID: CKRecordID! //4.2 var recordID: CKRecord.ID! If this helped you, share and pass it on! 😀 ➡️ 🐦
//4.0 UIViewPropertyAnimator.runningPropertyAnimator(withDuration: self.transitionDuration(using: context)/2, delay: 0, options: UIViewAnimationOptions.curveLinear, animations: { //4.2 UIViewPropertyAnimator.runningPropertyAnimator(withDuration: self.transitionDuration(using: context)/2, delay: 0, options: UIView.AnimationOptions.curveLinear, animations: { If this helped you, share and pass it on! …
//4.0 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { //4.2 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { If this helped you, share and …
//4.0 let manyEvents: [UIControlEvents] = [.touchCancel, .touchUpInside, .touchDown, .touchDownRepeat, .touchUpOutside, .touchDragEnter,.touchDragExit, .touchDragInside, .touchDragOutside] //4.2 let manyEvents: [UIControl.Event] = [.touchCancel, .touchUpInside, .touchDown, .touchDownRepeat, .touchUpOutside, .touchDragEnter,.touchDragExit, .touchDragInside, .touchDragOutside] If this helped …
//4.0 let reference = CKReference(recordID: whistle.recordID, action: .deleteSelf) //4.2 let reference = CKRecord.Reference(recordID: whistle.recordID, action: .deleteSelf) If this helped you, share and pass it on! 😀 ➡️ 🐦
Hopefully last of the updates I come across: (but there are bound to be more! The fun of programming) ‘CKRecordID’ has been renamed to ‘CKRecord.ID’ ‘CKReference’ has been renamed to …