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.
tableView. reloadData() or self. tableView. reloadData() , where tableView is a property in your ViewController.
Reloads the rows and sections of the table view.
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.
Call [UITableView reloadData];
to reload the table.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With