【发布时间】:2011-11-01 01:30:12
【问题描述】:
我正在使用 XCode 4.0.1。我必须对 UITableView 有不同的看法。数据来自服务器。我正在解析 JSON 数据并将其显示到 tableview。我正在使用 reloaddata 方法在 tableview 上显示数据。但大多数情况下它没有显示任何东西(它没有调用 tableview 委托方法)但有时运行正常。我在 ViewWillAppear 调用 URL,在 connectiondidfinishloadingdata 上调用 reloaddata。
我是一位经验丰富的 iphone 程序员,但这出乎我的意料。有什么建议。提前致谢。
【问题讨论】:
-
您是否尝试过调试您的应用程序?通过调试您的应用程序检查 numberOfRows 和 connectiondidfinishloadingdata 和 cellForRowAtIndexPath 方法。
标签: iphone ios4 delegates uitableview