Skip to content

Instantly share code, notes, and snippets.

import UIKit
class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
let menSports = ["Basketball", "Baseball", "Soccer"]
let womenSports = ["Basketball", "Soccer", "Softball", "Volleyball"]
let womenmenSports = ["Track & Field"]
func numberOfSections(in tableView: UITableView) -> Int {
return 3