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?
+2
A:
UIImageView
is not a subclass of UIControl
so it doesn't support the target-action mechanism. You have 2 options:
- Use a
UIButton
instead (and set your image as the button's background image). - Set
userInteractionEnabled = YES;
on your image view and implement the touch handling in -touchesMoved:` etc. yourself.
Ole Begemann
2010-06-19 11:30:19
but the best n simple method i Suggest will be the first one..
Suriya
2010-06-19 11:32:42