I’ve created a static UITableView through storyboard, and I want to be able to control it through a UITableViewController .h and .m file. Everything is all set up in storyboard, but how do I transfer the data (sections, number of rows in each section) into the implementation files?
Share
If you want to change the content or attributes of interface elements (e.g.
UILabel,UIImageView) in code you should createIBOutletsfor them and connect them.Since this is a static table that does not have dynamic cells there is nothing wrong with that.
And you don’t need the
UITableViewDataSourcemethods for a static table. Just remove these methods from the implementation file.