Cristian Cardoso Cristian Cardoso - 1 year ago 112
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

Answer Source

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 .

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download