I was checking some code and I found this call:
if (![[NSUserDefaults standardUserDefaults] boolForKey:@"database_v2"]) {
//Some code here
}
but I couldn’t find any initialization for this key in the code.
My question is: Does the compiler set automatically any value for calls like that? Or the app will just retrieve any garbage?
Regards!
According to the documentation, the method returns
NOwhen the key is not found.