Reloading my TableView...
Current Result: User opens my tableview(I.E. inbox), then, opens DetailView(another TableView, didSelectCell), they are able to modify the entries by clicking one of the buttons, and when going back to parent table, it is not updated. I close application, and open it again....And finally the table is reloaded acurratly.
Desired Result: When user opens my tableview(I.E. inbox), further, opens DetailView(another TableView, didSelectCell), they are able to modify the entry and when going back to parent table, Cell and attached images are updated. For Example: Incoming New Messeges, come into table with specific image in cell, and read messeges have a different image.
Way I have app set up:
All data on MySQL dataBase..... TabBar calls get data, parse and load into TableViews.
That's it really. I just would like the tableView to reload instantanious when the user clicks one of the buttons in detailView. NOTE: clicking buttons in detail View actually changes existing lines in mySQL dataBase and may need to make another call to server to request new array?....That's fine, I suppose, but can't get it to work with viewWillAppear...
I tried to implement:
Error: myTableView undeclared.....
Do I need to assign myTableView as a property perhaps? I have read up a bit, and can't figure out the solution.
If you are able to help....I would appreciate any feedback. I can insert more code if it would help anyone who thinks they might have the answer. Thanks again.
Current Result: User opens my tableview(I.E. inbox), then, opens DetailView(another TableView, didSelectCell), they are able to modify the entries by clicking one of the buttons, and when going back to parent table, it is not updated. I close application, and open it again....And finally the table is reloaded acurratly.
Desired Result: When user opens my tableview(I.E. inbox), further, opens DetailView(another TableView, didSelectCell), they are able to modify the entry and when going back to parent table, Cell and attached images are updated. For Example: Incoming New Messeges, come into table with specific image in cell, and read messeges have a different image.
Way I have app set up:
All data on MySQL dataBase..... TabBar calls get data, parse and load into TableViews.
That's it really. I just would like the tableView to reload instantanious when the user clicks one of the buttons in detailView. NOTE: clicking buttons in detail View actually changes existing lines in mySQL dataBase and may need to make another call to server to request new array?....That's fine, I suppose, but can't get it to work with viewWillAppear...
I tried to implement:
Code:
-(void)viewWillAppear{
[myTableView reloadData];
}
Error: myTableView undeclared.....
Do I need to assign myTableView as a property perhaps? I have read up a bit, and can't figure out the solution.
If you are able to help....I would appreciate any feedback. I can insert more code if it would help anyone who thinks they might have the answer. Thanks again.