I have a class with an accessible method that passes back an NSString when called.
NSString
[MyClass getMyString]
The string variable
You can not compare the two string using "==" this is for int and other values. you can use below code for the comparing two string
if ([Firststring isEqualToString:Secondstring]) {
NSLog(@"Hello this both string is same ");
}