2016-11-10 5 views
1

私は奇妙な問題を抱えていますが、tableViewを使用するすべてのメソッドでエラーがあります。 indexPathは使用できません。何か案は。 ??セクションのあいまいな使用

import UIKit 
import GoogleMaps 
import GooglePlaces 

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

enter image description here

enter image description here

+1

indexPath(またはIndexPath)をcmd-clickすると複数の定義が得られますか? –

+0

私がIndexPathをクリックするとFoundation-> IndexPathに移動します –

+0

クリックしてindexPathを実行しても何も起こりません –

答えて

0

あなたはindexPathを使用したい場合は、次のコードは、次のとおり

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

私は、コンパイラが混乱する理由を知りません。

関連する問題