Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // MARK: - Welcome
- struct Welcome: Codable {
- let status: Bool
- let data: DataClass
- }
- // MARK: - DataClass
- struct DataClass: Codable {
- let schools: [School]
- }
- // MARK: - School
- struct School: Codable {
- let id: Int
- let schoolName: String
- let date: String
- enum CodingKeys: String, CodingKey {
- case id
- case schoolName = "school_name"
- case date = "date"
- }
- }
- func numberOfSections(in tableView: UITableView) -> Int {
- return ??
- }
- func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
- return ??
- }
- func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
- return ??
- }
- func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
- let cell = tableView.dequeueReusableCell(withIdentifier: "cell") as! UITableViewCell
- ????
- return cell
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement