简体   繁体   English

TableView重新加载connectionDidFinishLoading内部的数据时出错(由json解析)

[英]error with tableview reload data inside connectionDidFinishLoading (parsing by json)

I have a view-controller with tableview with custom tableview cell and after 我有一个带有自定义tableview单元格的tableview的视图控制器

-(void)connectionDidFinishLoading:(NSURLConnection *)connection
{}

It gives this error : Property 'tableview' not found on object of type 'ViewController2 *' after using the code below and without it the data is not displayed in the tableview. 它给出此错误:使用下面的代码后,在类型'ViewController2 *'的对象上找不到属性'tableview' ,没有它,数据将不会显示在tableview中。

[self.tableview reloadData];

I am unable to figure out how to fix it .Please help me out .I will greatly appreciate the help. 我无法解决该问题。请帮助我。我将非常感谢您的帮助。

Thanks in advance. 提前致谢。

Possibilities of the above error 出现上述错误的可能性

     1) Your Xib would not have been connected with your ViewController2
     2) You would have not connected your tableView IBOutlet to your xib
     3) In case if you have not @synthesize it if you have declared it as a property
     4) If all the above you did correctly just clean your Xcode and run

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM