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
Asked
Active
Viewed 112 times
-2

Lan Nguyen
- 9
- 4
-
2please add the code and format it instead of an image. – Vinayaka S Yattinahalli May 04 '20 at 04:47
1 Answers
3
By default UIImageView has disabled user interaction. Make sure it is enabled - either in Storyboard or programmatically.

Asperi
- 228,894
- 20
- 464
- 690
-
@All problem solved, I need to put the func setupAvatar in viewDidLoad(). it works Thanks – Lan Nguyen May 04 '20 at 05:17