вот мой код:
NSUInteger f;
for (f = 0; f < [appDelegate.books count]; f++) {
check = [appDelegate.books objectAtIndex:f];
checkthis = check.LotteryNumber;
mystring = check.LotteryNumber;
NSLog(@"Dynamic Value: %@",mystring);
NSLog(@"Static Value: %@",checkthis);
if (checkthis == mystring) {
found = YES;
break;
}
printf("In LOOP");
}
if ( found ) {
// do found
NSLog(@"Found");
} else {
// do not found
NSLog(@"not Found");
}
//if (checkthis == mystring) {
в строке выше, если я размещаю checkthis с обеих сторон, он работает, но когда я беру динамическое значение, он не работает ..
я тоже попробовал вот так
if(checthis isEqualToString mystring)
та же проблема здесь ....
Заранее спасибо