tableview没有什么? [英] tableview has nothing?

查看:55
本文介绍了tableview没有什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的tableview具有以下方法.我已经完美地完成了所有事情... numberOfRowsInSection returns 10 .....以下方法将不会被调用....它什么也没显示......

my tableview has the following method.i have done everything perfectly...numberOfRowsInSection returns 10.....the following method will not be called....it shows nothing......

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

推荐答案

在很多地方您可能会出错...而且,如果您发布一些代码,则更有可能获得解决方案,但还有一些可能.

There are lots of places you could have gone wrong...and if you post some code you're much more likely to get a solution but some possibilities.

您还实现了

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView

您是否设置了表视图的数据源并将其委托给您的控制器? (以编程方式或通过界面构建​​器出口)

Have you set the tableview's datasource and delegate to your controller? (Either programatically or via interface builder outlets)

您的控制器是否在其标题或子类UITableViewController中声明UITable视图数据源并委托协议?

Does your controller declare the UITable view datasource and delegate protocols in it's header OR subclass UITableViewController?

没有提供更多信息,很难提供解决方案.

Without you providing more info it's pretty hard to give a solution.

这篇关于tableview没有什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆