uitableview - iphone table view - button inside table cell -


i have created button , placed inside table cell:

[btn addtarget:self action:@selector(dosomething:) forcontrolevents:uicontroleventtouchupinside]; ... [cell.asubview addsubview:btn]; 

the button shows in table cell, tapping highlights , selects entire cell. how can button selected on own?

why use cell.asubview? should go contentview property. documentation:

if want customize cells adding additional views, should add them content view positioned appropriately cell transitions , out of editing mode.


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..." -