I want to do the following thing: if country == "Россия", some actions.. But my if-else statement doesn't work. What do I should do? Thanks in advance. My code:
NSLocale *locale = [NSLocale currentLocale];
NSString *countryCode = [locale objectForKey:NSLocaleCountryCode];
NSString *country = [locale displayNameForKey:NSLocaleCountryCode value: countryCode];
NSLog(@"%@", country);
if (country == @"Россия") {
NSLog(@"GO RUSSIA");
}
else {
NSLog(@"You are not russian");
}