views:

23

answers:

1

Hi, everyone,

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.

+3  A: 

Call [UITableView reloadData]; to reload the table.

Conceited Code
@Conceited Code, thank you for your reply. Is it just add to some where when I want to update the UITableView?
Questions
Yup. Make the changes and call the function.
Conceited Code
@Conceited Code, thank you very much. The information is very very useful for me. Thank you.
Questions
No problem. Glad to help.
Conceited Code