UILabel not changing when method called
- by LyonJTill
- (IBAction)restoreUserDefaults {
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
 if([defaults objectForKey:@"Exam Name"] == nil) {
  examName = [[NSString alloc] initWithString:@"Name"];
 } else {
  examName = [[NSString alloc] initWithString:[defaults objectForKey:@"Exam Name"]];
 }
 [examNameLabel setText:[NSString stringWithFormat:@"%@",examName]];
}
Hey all,
Basically above is the method that is being called when one ViewController is being close and another is being opened the problem is, is that the UILabel in the new ViewController isn't changing to the value i need it to? Any ideas?
Regards
Lyon J Till