LotteryAppDelegate *appDelegate = (LotteryAppDelegate *)[[UIApplication sharedApplication] delegate]; Lotterycheck *check;
//NSString *trueval;
BOOL found = NO;
NSUInteger f;
for (f = 0; f < [appDelegate.books count]; f++) {
check = [appDelegate.books objectAtIndex:f];
checkthis = [NSString stringWithFormat:@"%@", check.LotteryNumber];
mystring =@"1234567"; //check.LotteryNumber;
NSString *finel = checkthis;
NSLog(@"Dynamic Value: %@",finel);
NSLog(@"Static Value: %@",mystring);
if ([mystring isEqualToString:finel]) {
found = YES;
[self showalert:finel];
break;
}
its not comapring the string " if([mystring isEqualToString:finel])" mystring is static value and finel is the value i am getting from the class lotterycheck..