Guest User

Untitled

a guest
Nov 21st, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. extension LocationSearchTable {
  2. override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
  3. return matchingItems.count
  4. }
  5.  
  6. override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
  7. let cell = tableView.dequeueReusableCellWithIdentifier("cell")!
  8. let selectedItem = matchingItems[indexPath.row].placemark
  9. cell.textLabel?.text = selectedItem.name
  10. cell.detailTextLabel?.text = ""
  11. return cell
  12. }
  13. }
  14.  
  15. Terminating app due to uncaught exception 'NSInternalInconsistencyException',
  16. reason: 'UITableView (<UITableView: 0x7ff8e03a3800; frame = (0 0; 375 667); clipsToBounds = YES; autoresize = W+H;
  17. gestureRecognizers = <NSArray: 0x604002046450>; layer = <CALayer: 0x604001626620>;
  18. contentOffset: {0, -56}; contentSize: {375, 132};adjustedContentInset: {56, 0, 0, 0}>)
  19. failed to obtain a cell from its dataSource(<CityWeather.LocationSearchTable: 0x7ff8de696e60>)'
Add Comment
Please, Sign In to add comment