iphone - touch events on UIimageView which is on UIwindow -
iphone - touch events on UIimageView which is on UIwindow -
i m using uiimageview on top of uiwindow. want handle touch event imageview, m not able it.
when utilize uiimageview on uiview, can utilize touchbegan, touchended how handle when on uiwindow instead of uiview.
thanks..
if want handle tap, have set,
imageview.userinteractionenabled = yes;
by default uiimageview has userinteractionenabled property set no. , can add together tap gesture recognizer it,
uitapgesturerecognizer *tgr = [[uitapgesturerecognizer alloc] initwithtarget:self action:@selector(anymethod)]; [imageview addgesturerecognizer:tgr]; [tgr release];
if want move image, can utilize uipangesturerecognizer.
iphone objective-c ios uitouch uiwindow
Comments
Post a Comment