I have the following code
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSValue *state = [defaults objectForKey:@"screenstatus"];
Here the state holds a string value for the key screen status. I need to get the value of the screen status and compare it with a string say the string to compare with is "abcd"
if (CODE TO COMPARE){
//Has ran before, skip your UIViews or whatever
}
else{
//Has not ran before, do your setup or whatever.
}
I am not clear what I need to write in the CODE TO COMPARE section. Could you please help me .
Thanks for your time.