I have multiple tableviews that have various static cells and everything is cool.
I would like to implement some functionality to a button that is in one of the cells in all of the tables, but I do not know where the header and implementation files for UITableViewController
are located and or how to access them. Any ideas?
You can't directly manipulate UITableViewController
. Besides, it is not a good idea to do it anyway. The best way to do it is subclassing it.
NSObject
file MyTableViewController
) MyTableViewController.h
in left side pane, and change NSObject
to UITableViewController
. UITableViewController
to MyTableViewController
. tag
field (eg 1001). cellAtIndexPath:
) and then get a hold of that button with tag ( [cell.contentView viewWithTag:]
).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.