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