forked from Nandini-13/Byte-Hacks-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ViewController.swift
41 lines (29 loc) · 1.11 KB
/
ViewController.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// ViewController.swift
// ImmiRent
//
// Created by Lola on 7/31/20.
// Copyright © 2020 Karolina Dubiel. All rights reserved.
//
import UIKit
class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate
{
var tenements = ["Mulberry Bend", "Mercer Street", "Greene Street", "Madison Avenue", "77th Street", "Amsterdam Avenue", "East 57th St", "169th Street", "Broadway Street", "West End Ave", "82nd St", "Mott Street", "Bleecker Street"]
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int
{
return tenements.count
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
{
let cellIdentifier = "datacell"
let cell = tableView.dequeueReusableCell(withIdentifier: cellIdentifier, for: indexPath)
//Configuring the cell
cell.textLabel?.text = tenements[indexPath.row]
return cell
}
override func viewDidLoad()
{
super.viewDidLoad()
// Do any additional setup after loading the view.
}
}