ios - touchesBegan: withEvent: is not called when tapped on a UIButton -


what want implement column matching type functionality. have 3 buttons on right column , 3 on left column info on them. want draw path 1 button on right side of button on left side dragging finger.

i use uibezierpath path draw path, , start , end point needed.

now issue how can trigger touchesbegan, touchesmoved , touchesended methods tapping on buttons can start , end points.

another option thinking cover buttons invisible uiview, , somehow check if point touched of overlay view lies in of button frames.

btw can replace these buttons simple uiimageview well. added buttons sake of getting touch points.

any help.

create subclass of uibutton , add this...

- (void)touchesbegan:(nsset *)touches withevent:(uievent *)event  {       [super touchesbegan:touches withevent:event];     [self.nextresponder touchesbegan:touches withevent:event];  } 

this touches within button.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -