我有一个奇怪的问题,在所有使用 tableView 的方法中都有错误。我不能使用 indexPath。有任何想法吗。 ??
import UIKit
import GoogleMaps
import GooglePlaces
class MapViewController: UIViewController, CLLocationManagerDelegate,
GMSMapViewDelegate, UITextFieldDelegate, UITableViewDataSource,
UITableViewDelegate {
最佳答案
如果你想使用indexPath,请遵循以下代码:
let index = indexPath as NSIndexPath
let row = índex.row
我不知道为什么编译器会混淆。
关于swift - section 的使用不明确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40535485/