Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import UIKit
- class ViewController: UIViewController, UITableViewDataSource {
- override func viewDidLoad() {
- super.viewDidLoad()
- // Do any additional setup after loading the view.
- }
- // MARK: - tableview Datasource
- func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
- return 7
- }
- func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
- var cell = UITableViewCell()
- cell.textLabel?.text = "Privet!"
- return cell
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement