I have two string. This strings is not equal but if else statement always saying yes.
My code these;
PFQuery *bilquery = [PFQuery queryWithClassName:@"Bildirim"];
PFObject *saat = [bilquery getObjectWithId:@"lQTsXaBvuq"];
NSString *asd = [saat objectForKey:@"gun"]; //asd is 06 or 07.
NSDate *currDate = [NSDate date];
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
[dateFormatter setDateFormat:@"dd"];
NSString *dateString = [dateFormatter stringFromDate:currDate];
int d = [dateString intValue] + 1;
NSString *dplus1 = [NSString stringWithFormat:@"%d",d];
if ((dateString = asd)) {
NSLog(@"YES");
} else {
NSLog(@"NO");
// Bla bla bla
}
NSString asd in my parse database. Where is my correct in if else statement?