title: Problem in two string comparison...!
body: <p>LotteryAppDelegate *appDelegate = (LotteryAppDelegate *)[[UIApplication sharedApplication] delegate];
      Lotterycheck *check;</p>
  
  <pre><code>//NSString *trueval;
   BOOL found = NO;
      NSUInteger f;
  for (f = 0; f &lt; [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;
  
      }
  </code></pre>
  
  <p>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..</p>