Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
- let pfile = Bundle.main.path(forResource: "scheduling", ofType: "plist")
- let indexes = defaults.integer(forKey: "index")
- let indexes2 = defaults.integer(forKey: "index2")
- let stadiumName = stadia[indexes]
- let countryName = country[indexes2]
- let arrays = NSDictionary(contentsOfFile: pfile!)
- let first = arrays?.value(forKey: stadia[indexes]) as? [[String]]
- if (titles.text?.contains(stadiumName))!{
- let returning = first!.count
- return returning
- }
- if (titles.text?.contains(countryName))!{
- let returning = 3
- return returning
- }
- }
Add Comment
Please, Sign In to add comment