ios - Add an action to a custom UITableViewCell -
i building simple app table view filled custom view cells , using storyboard. want add actions on cell each time user tap it.
so far, tried create iboutle
link cell tableviewcontroller
, add action manually in code each time try error message saying "illegal configuration - cannot have prototype object destination".
the quick fix found add uibutton
transparent background , no title fills in whole cell , attached action it.
is there more elegant way it?
not there more "elegant" solution, there correct way this.you should using didselectrowatindexpath
method cells.
you should read apple docs have say
and also, here tutorial on how use row selection in tableview.
Comments
Post a Comment