
HI,
How to compare two NSString objects? Give me code for nsstring compare.
Thanks

Hi,
You can use isEqualToString method of the NSString class. Here is the code example:
if([strSearchText isEqualToString:@"MyValue"]){
//Strings are equal
}else{
//String is not equal
}
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.