every one.
I’m a new for iphone.
I saw some document for iphone develop, but
I don’t understand the [xxx reloadData]; with tableView yet.
When i use this method, my all cells are cleared.
What happened?
I don’t understand it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It means you force the
UITableViewto get the data and refresh itself. It is what you wanna do after you changed something in your data source.For example, I have a
NSMutableArrayof three objects a, b and c. I have a button to delete an object, say b. After I pressed my button and get object b deleted from my array, my table view won’t reload unless I call[myTableViewName reloadData]to force it refresh itself.If after you do
[xxx reloadData], you got nothing. It means, your data needed for the table view is not there anymore. So track the data source and see if the data got changed.