問題
UITableViewDataSource プロトコルを指定した場合に以下のようなエラーが発生。
Type 'ViewController' doen not conform to protocol 'UITableViewDataSource'
原因
UITableViewDataSource プロトコルを使用する場合、以下2つのメソッドが実装必須になっています。
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { } func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { }
解決方法
上記2つのメソッドを実装すればエラーは消えます。