Folks,
See this code:
int i = years;
NSLog(@"Years i: %i",i);
NSString *syears= [NSString stringWithFormat:@"%d",i];
menuList = [[NSMutableArray alloc] init];
[menuList addObject:[NSMutableDictionary
dictionaryWithObjectsAndKeys:
@"years", kLeftKey,
syears, kRightKey, nil, kControllerKey, nil]];
The above is an extract from ViewWillAppear. When I switch between tabs ViewWillAppear is doing it's job and the data is updating down as far as NSString *syears= [NSString stringWithFormat:@"%d",i]; but after that my array doesn't get updated with the latest value of syears....I tried using setObject and setValue but these don't work with NSMutableArray.
Any ideas..
Thanks
Deso