iphone - UIButton grid activate same time dragging -
i have grid of various uibuttons (5 x 5)... have uicontroleventtouchupinside.. means when user wants choose various buttons need press each, 1 one...
how can activate buttons when user dragging finger on various buttons.
here code use:
for (i = 0; < num_caselles; i++) { lletra = [[uibutton alloc] initwithframe:cgrectmake(pos_h, pos_v, mida_boto, mida_boto)]; [botones addobject: lletra]; [lletra settitle: [caselles objectatindex: i] forstate: uicontrolstatenormal]; lletra.tag = i; [lletra addtarget:self action:@selector(lletrapitjada:) forcontrolevents: uicontroleventtouchupinside]; }
you can react to:
uicontroleventtouchdragenter or uicontroleventtouchdragexit
to handle these cases.
Comments
Post a Comment