'How can I make UIImageView non-clickable? Is it possible to do that?

I am trying to implement native ads in iOS app.

enter image description here

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.

enter image description here

--

enter image description here



Solution 1:[1]

  1. Disable User Interaction for the imageView in the storyboard

OR

  1. 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