'How can I make UIImageView non-clickable? Is it possible to do that?
I am trying to implement native ads in iOS app.
Small icon is clickable but it seems that it is against admob policy.
Only the ad titles, URLs, CTA, and non-background image assets should be clickable.
https://support.google.com/admob/answer/6240814?hl=en&ref_topic=7384666
How can I make it non-clickable? When I click small icon it redirects to Ad page but I don't want like this.
--
Solution 1:[1]
- Disable User Interaction for the imageView in the storyboard
OR
Through coding
imageView.isUserInteractionEnabled = false
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Dinesh |