//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 …
//4.0 func webView(_ webView: UIWebView, shouldStartLoadWith request: URLRequest, navigationType: UIWebViewNavigationType) -> Bool { //4.2 func webView(_ webView: UIWebView, shouldStartLoadWith request: URLRequest, navigationType: UIWebView.NavigationType) -> Bool { If this helped …
//4.0 override func tableView(_ tableView: UITableView, editingStyleForRowAt indexPath: IndexPath) -> UITableViewCellEditingStyle { //4.2 override func tableView(_ tableView: UITableView, editingStyleForRowAt indexPath: IndexPath) -> UITableViewCell.EditingStyle { If this helped you, share …
//4.0 var blurView = UIVisualEffectView(effect: UIBlurEffect(style: UIBlurEffectStyle.light)) //4.2 var blurView = UIVisualEffectView(effect: UIBlurEffect(style: UIBlurEffect.Style.light)) If this helped you, share and pass it on! 😀 ➡️ 🐦
//4.0 sender.imageEdgeInsets = UIEdgeInsetsMake(0,0,0,0) //sender = button //4.2 sender.imageEdgeInsets = UIEdgeInsets(top: 0,left: 0,bottom: 0,right: 0) If this helped you, share and pass it on! 😀 ➡️ 🐦
//4.0 if let jpegData = UIImageJPEGRepresentation(newImage, 80) { try? jpegData.write(to: imagePath) } //4.2 if let jpegData = newImage.jpegData(compressionQuality: 80) { try? jpegData.write(to: imagePath) } If this helped you, share …
//4.0 alert.addAction(UIAlertAction(title: “Cancel”, style: UIAlertActionStyle.destructive, handler: nil)) //4.2 alert.addAction(UIAlertAction(title: “Cancel”, style: UIAlertAction.Style.destructive, handler: nil)) If this helped you, share and pass it on! 😀 ➡️ 🐦
//4.0 try recordingSession.setCategory(AVAudioSessionCategoryPlayAndRecord, with: .defaultToSpeaker) //4.2 try recordingSession.setCategory(AVAudioSession.Category.playAndRecord, mode: AVAudioSession.Mode.default, options: []) If this helped you, share and pass it on! 😀 ➡️ 🐦