Hi, I'm using NSUser Defaults to set an image in a UIImageView,
this works fine and I use the following code:
myString = [[NSString alloc] initWithFormat:@"Background 2.png"];
myBackground.image = [UIImage imageNamed:myString];
NSUserDefaults *stringDefault = [NSUserDefaults standardUserDefaults];
[stringDefault setObject:myString forKey:@"stringKey"];
But the problem I'm having is calling the string when the view loads,
I use the following code:
[myBackground.image = [[NSUserDefaults standardUserDefaults] objectForKey:@"stringKey"]];
but I get the following errors:
expected ":" before "]" token
confused by earlier errors bailing out
I've tried everything
oooh, help please?