2014年9月3日水曜日

Xcode6 beta7 でビルドエラー Type 'ViewController' does not conform to protocol 'UITableViewDataSource'

Xcode6 beta6 までは出ていなかったエラーが
beta7 では発生するようになった

    func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell! {



    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {

上記のように3箇所の ! を外したら
このビルドエラーは解消された

0 件のコメント:

コメントを投稿