一直以来
tableView:cellForRowAtIndexPath: 的返回类型都是UITableViewCell 吧。而不是无返回值的void. 如下是完整的声明。
-(UITableViewCell *)tableView:(UITableView *) tableView cellForRowAtIndexPath: (NSIndexPath *)indexPath
所以有返回值的方法,就必须要有return
tableView:cellForRowAtIndexPath: 的返回类型都是UITableViewCell 吧。而不是无返回值的void. 如下是完整的声明。
-(UITableViewCell *)tableView:(UITableView *) tableView cellForRowAtIndexPath: (NSIndexPath *)indexPath
所以有返回值的方法,就必须要有return
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货