samedi 25 avril 2015

What is the best way to add a table view controller to a custom table view object? (using nib)


Im working with nib files, and one of my nib files is a custom view that represent a setting pop-up view for the app.

The nib looks like this:

enter image description here

Now, I want to create a controller class only for that UITableView component, a class to include all the setup methods for table view (like cellForRowAtIndexPath).

How do I do this?

Because if create a uitableviewcontroller class I cannot assign it to the table view component because it's of type uitableview, and if I create a uitableview objective c class so I dont get auto complete for those methods I need so something feels wrong here..

What is the proper way?

Thanks!!


Aucun commentaire:

Enregistrer un commentaire