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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -