Post

Replies

Boosts

Views

Activity

Reply to How to use buttons to change pictures in the UIImageView that are in my assets?
Use Tag Value To Change your image View, Based On Tag U Can image View images without any another variable. I only told to change only3 images in between them if u want more than u have to maintain tags.@IBOutlet func changeImageBtnTouchUpInside(_ sender:UIButton){ if(sender.tag == 0){ myimageView.image = UIImage(named: "firstImage") sender.tag = 1 }else if(sender.tag == 1){ myimageView.image = UIImage(named: "secondImage") sender.tag = 2 }else if(sender.tag == 2){ myimageView.image = UIImage(named: "thirdImage") sender.tag = 0 }}
Mar ’20
Reply to how to disable Zoom-Out & Zoom-In
You Have to maintain in delegate Method. First You Have to implicate this Delegate, UIScrollViewDelegate. Then only its work@IBOutlet weak var webView: WKWebView!override func viewDidLoad() { super.viewDidLoad() self.webView.scrollView.delegate = self}//MARK: - UIScrollViewDelegatefunc scrollViewWillBeginZooming(_ scrollView: UIScrollView, with view: UIView?) { scrollView.pinchGestureRecognizer?.isEnabled = false}I Think It may Useful.
Mar ’20