//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! 😀 ➡️ 🐦
//4.0 btnAction.setTitle(“Stop”, for: UIControlState.normal) //4.2 btnAction.setTitle(“Stop”, for: UIControl.State.normal) If this helped you, share and pass it on! 😀 ➡️ 🐦
//4.0 swipeDownGestureRecognizer.direction = UISwipeGestureRecognizerDirection.down //4.2 swipeDownGestureRecognizer.direction = UISwipeGestureRecognizer.Direction.down If this helped you, share and pass it on! 😀 ➡️ 🐦
//4.0 let alert = UIAlertController(title: title, message: msg, preferredStyle: UIAlertControllerStyle.alert) //4.2 let alert = UIAlertController(title: title, message: msg, preferredStyle: UIAlertController.Style.alert) If this helped you, share and pass it on! …