Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func numberOfSectionsInTableView(tableView: UITableView) -> Int {
- return 1
- }
- func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
- return items.count
- }
- func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
- let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) as UITableViewCell
- cell.textLabel?.text = items[indexPath.row]
- return cell
- }
Add Comment
Please, Sign In to add comment