Advertisement
wpl36

Untitled

Jan 12th, 2022
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1.  
  2. import UIKit
  3.  
  4. class ViewController: UIViewController, UITableViewDataSource {
  5.  
  6. override func viewDidLoad() {
  7. super.viewDidLoad()
  8. // Do any additional setup after loading the view.
  9. }
  10.  
  11. // MARK: - tableview Datasource
  12.  
  13. func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
  14. return 7
  15. }
  16.  
  17. func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
  18. var cell = UITableViewCell()
  19. cell.textLabel?.text = "Privet!"
  20. return cell
  21. }
  22.  
  23.  
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement