-2

I create a log in view with func that I can pick profile pic when tap on Avatar as UIImage view, you can pick avatar from library. As the code I wrote, I am not able to trigger the tapping gesture. Please be advised on this. Thanks Text](https://stackoverflow.com/image.jpg)[![enter image description here

1 Answers1

3

By default UIImageView has disabled user interaction. Make sure it is enabled - either in Storyboard or programmatically.

demo

Asperi
  • 228,894
  • 20
  • 464
  • 690