Am incercat sa extrag data dar data rezultata este de "ieri" cu o zi mai putin decat trebuie:
NSDate *now = [NSDate date]; unsigned unitFlags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit; NSCalendar *calendar = [NSCalendar currentCalendar]; NSDateComponents *components = [calendar components: unitFlags fromDate: now]; NSDate *theDate = [calendar dateFromComponents: components]; NSLog(@"%@",theDate);