UITableView swift and load data from JSON

 - Create a new Swift iOS single view project.

- Disable the use size classes option.



-Remove the View controller that is inside the storyboard as default





- Add the UITableViewController element

- Set a custom class for the UITableViewController

Create a new iOS Cocoa Touch Class and set the subclass as UITableViewController and the name of the class as TableController and create it.

- In the Main.storyboard select again your UITableViewController and in the identity inspector set the TableController class that you've prevously created.

In the Attribute inspector turn on the is initial view controller option

- Select the table view cell and under the attribute inspector set the identifier to cell


- TableUIController Class










- Result

-***Download Code Example here

Comments