I've been looking for a solution to this question for a few hours now, and I can't seem to figure out a way to construct a UITableViewCell in Interface Builder, link its actions to a parent UINavigationController, and then use the cell for displaying information across two separate instances of UITableViews. After a few hours of research, I have structured my files as such:
UIViewController, NOT created in Interface Builder, that is my base view for the entire project. Contains an IBAction that pushes the UserInfoController on the stack.
UITableViewCell, created in Interface Builder, which contains a button that when pressed should push a new UIViewController, let's call it UserInfoController, on top of the stack. The File's Owner is the above UIViewController.
UIView, created in Interface Builder, that I use in the above UIViewController. This UIView contains a top UIView section with data and a bottom UITableView that displays the UITableViewCells. I want to make it so that when you press the button in the UITableViewCell, displayed in this UIView, it activates an action in the parent UIViewController.
I feel like I'm missing something big here. I would also like to eventually create another UIViewController with a UIView and UITableView that should ALSO use the UITableViewCell and perform the action of the first UIViewController. However, since I can't even get this working for one of my views, I'll wait until I figure the above problem out.
EDIT: My gut instinct is telling me that this is a problem with an Outlet. Currently, my UIViewController is acting as the File's Owner to the UIView which contains the UITableView. The UIView also contains the code for the UITableViewDelegate and the UITableViewDataSource, which uses my UITableViewCell to display relevant information. The UITableViewCell is its own Nib, but its File's Owner is ALSO the UIViewController. However, when I go to press the button inside my UITableViewCell, the event registers with the UIView, despite the fact that there are no outlets there. The reason why I want the UITableViewCell to be its own Nib is because I want to re-use it for other UIViewController views later on.
I can view the UITableViewCell just fine, but I cannot get it to behave properly. How can I link the action of the button within my UITableViewCell not to the file containing its UITableView Delegate and DataSource, but to the UIViewController that contains it?
Hope this is a little bit more clear :-D