Simple example of how to populate data to an UITableView with Swift (iOS programming)
In this example, the data is stored in an Array of Student objects.
Call this to get the Data:
MyData.getStudentList()
To populate data to UITableView, we need to implement the UITableViewDataSource protocol and implement the following 2 methods:
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell