Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. // MARK: - Welcome
  2. struct Welcome: Codable {
  3. let status: Bool
  4. let data: DataClass
  5. }
  6.  
  7. // MARK: - DataClass
  8. struct DataClass: Codable {
  9. let schools: [School]
  10. }
  11.  
  12. // MARK: - School
  13. struct School: Codable {
  14. let id: Int
  15. let schoolName: String
  16. let date: String
  17.  
  18. enum CodingKeys: String, CodingKey {
  19. case id
  20. case schoolName = "school_name"
  21. case date = "date"
  22. }
  23. }
  24.  
  25. func numberOfSections(in tableView: UITableView) -> Int {
  26. return ??
  27. }
  28.  
  29. func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
  30. return ??
  31. }
  32.  
  33. func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
  34. return ??
  35. }
  36.  
  37. func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
  38. let cell = tableView.dequeueReusableCell(withIdentifier: "cell") as! UITableViewCell
  39. ????
  40. return cell
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement