Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update the data in UITableView?

I want to ask a question about the objective-C and iPhone application. I am writing a program which contains a UITableView *. In the view, it has 1 table section which is 2 rows. Both of the row display a int. In the same page, it has a button. after the user press the button, both of the int will be updated. However, I found that both of the int in the table don't update. Can anyone help me? Thank you.

like image 317
Questions Avatar asked Aug 30 '10 02:08

Questions


People also ask

How do you update data in a table view?

tableView. reloadData() or self. tableView. reloadData() , where tableView is a property in your ViewController.

What does tableView reload data do?

Reloads the rows and sections of the table view.

What class does UITableView inherit from?

TableView can be defined as the view which can arrange the data using rows in a single column. It is used in almost every iOS application, for example, contacts, facebook, Instagram, etc. The tableview is the instance of the UITableView class, which inherits the UIScrollView class.


1 Answers

Call [UITableView reloadData]; to reload the table.

like image 74
Conceited Code Avatar answered Oct 06 '22 04:10

Conceited Code