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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -