faith:iOS Developer

不放过一个Bug

疯狂Debug,
重新敲一遍,
一定有感觉。

今天失误啊,
不遵守UITableViewDataSource 协议,
把这个
<#
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
print("子类必须实现tableView:numberOfRowsInSection")
return 0
}

>

看成这个了

func numberOfSectionsInTableView(tableView: UITableView) -> Int {
    <#code#>
}

干这行,就是要 大胆, 大胆 ,再大胆。

交流,

非常重要。

相信你的Mac,

等一等,就好了。

你可能感兴趣的:(faith:iOS Developer)