.save

セーブがしたいんです…

railsとswiftを連携させる練習

参考

github.com

 

詰まり

以下のコードをどこに挟むのかがわからず。

TweetsViewController.swiftに挟むと以下のエラー。

エラーメッセージ

Method does not override any method from its super class

	override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
        return 1
    }

    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return tweets.count
    }

    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("reuseIdentifier", forIndexPath: indexPath)

        let tweet = tweets[indexPath.row]
        cell.textLabel?.text = tweet.title

        return cell
    }

 

 詳しい方、いらっしゃいましたら教えてくださいまし。