Skip to content

Simple example of how to populate data to a UITableView with Swift (iOS programming)

License

Notifications You must be signed in to change notification settings

ngthanhbinh85/Example-UITableView-iOS-Swift

Repository files navigation

Example-UITableView-iOS-Swift

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

About

Simple example of how to populate data to a UITableView with Swift (iOS programming)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages