Quote:
Originally Posted by tateyaku
Thank you for the reply!
I've tried to put the viewWillLoad into my app, but it wouldn't work where ever I put it. I'm not using a navigation based program, it's just a normal view/VC with a table placed inside with interface builder.
I've tried putting the reloadData code in other places in the code, but still no effect. With and with out the self. section. I've even tried the release / = nil / reload /reloadData for the shared variable, but still no positive effects.
Do you, or any one else have any other way of implementing this code, or a different way of passing the selected value to the new view?
|
Well, viewWillLoad is never going to get called as it's not a valid method (unless I missed it in the documentation?). You can put it in viewDidLoad, but that will only update the data when the view is actually loaded. Try doing this:
Code:
-(void)viewWillAppear:(BOOL)animated {
[self.tableView reloadData];
[super viewWillAppear:animated];
}
So that every time the table view appears it will edit the data. I didn't test this because I don't have access to Xcode right now, so let me know what works and what doesn't and I'll try and help.