Reputation: 7360
I've looked through countless SO answers on this subject and cannot find what I am looking for.
I have a view I created in a xib file. It has a UITableView
as a subview. I hooked up the delegate and data delegates to the controller and it works.
Now, I want to load a custom cell in the UITableView
- the cell needs to have a UILabel
a UITextField
and three UIButtons
that are only visible when a condition is met. My question is simply this:
Can I create a custom cell in a separate xib file with these elements that I need - the load it in the tableview and connect the UI elements to my viewController?
I've tried the above but IB does not allow me to make connections to my view controller.
Can anyone gov me some tips here?
Thanks!
Upvotes: 2
Views: 7254
Reputation: 2464
For reference,
Custom TableViewCell tutorial 1
Custom TableViewCell tutorial 2
Upvotes: 2