Cristian Cardoso Cristian Cardoso - 8 months ago 71
Swift Question

Ambigous use of section

I have a strange issue, in all methods that use tableView have the error. I can't use indexPath. Any ideas. ??

import UIKit
import GoogleMaps
import GooglePlaces

class MapViewController: UIViewController, CLLocationManagerDelegate,
GMSMapViewDelegate, UITextFieldDelegate, UITableViewDataSource,
UITableViewDelegate {

enter image description here

enter image description here


If you want to use indexPath follow the next code:

 let index = indexPath as NSIndexPath
 let row = índex.row

I dont know why the compiler get confused .