i have a image ,i want to launch url when i press that logo or image ,how to implement ib action for that image view …
can any one give suggestion i selected image view in ib to place my logo is it right?
i have a image ,i want to launch url when i press that logo
Share
UIImageViewis not a subclass ofUIControlso it doesn’t support the target-action mechanism. You have 2 options:UIButtoninstead (and set your image as the button’s background image).userInteractionEnabled = YES;on your image view and implement the touch handling in -touchesMoved:` etc. yourself.