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
Post a Comment