You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clearification: Kal Calendar is subclassed because I am using storyboards and this was the only way I could get it to display calendar, iOS 5, arc.
It seems like no matter what date I select on Kal Calendar is gives me current date (but time is correct in tableview). Pulling JSON from PHP page.
**myTimesArray is an array of unsorted dates. mySortedDates is just the sorted myTimesArray.
Here is the issue, I sorted my timesArray (array of dates) by using self.mySortedDates = [self.timesArray sortedArrayUsingSelector:@selector(compare:)]; and this seems to work fine
The issue is that when I call:
(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
NSDate *timeSelected = [self.mySortedDates objectAtIndex:indexPath.row];
NSLog(@"Test cell call: %@", timeSelected);
}
No matter what day I press (on the Kal Calendar) I always get current date.
Selected Calendar date of 2012-09-20 at 08:00 and the NSLog is:Test cell call: 2012-09-20 08:00:00 +0000
Selected Calendar date of 2012-09-21 at 08:00 and the NSLog is: Test cell call: 2012-09-20 08:00:00 +0000
Selected Calendar date of 2012-09-27 at 15:00 and the NSLog is Test cell call: 2012-09-20 15:30:00 +0000
The text was updated successfully, but these errors were encountered:
Clearification: Kal Calendar is subclassed because I am using storyboards and this was the only way I could get it to display calendar, iOS 5, arc.
It seems like no matter what date I select on Kal Calendar is gives me current date (but time is correct in tableview). Pulling JSON from PHP page.
**myTimesArray is an array of unsorted dates. mySortedDates is just the sorted myTimesArray.
Here is the issue, I sorted my timesArray (array of dates) by using self.mySortedDates = [self.timesArray sortedArrayUsingSelector:@selector(compare:)]; and this seems to work fine
The issue is that when I call:
{
NSDate *timeSelected = [self.mySortedDates objectAtIndex:indexPath.row];
NSLog(@"Test cell call: %@", timeSelected);
}
No matter what day I press (on the Kal Calendar) I always get current date.
Selected Calendar date of 2012-09-20 at 08:00 and the NSLog is:Test cell call: 2012-09-20 08:00:00 +0000
Selected Calendar date of 2012-09-21 at 08:00 and the NSLog is: Test cell call: 2012-09-20 08:00:00 +0000
Selected Calendar date of 2012-09-27 at 15:00 and the NSLog is Test cell call: 2012-09-20 15:30:00 +0000
The text was updated successfully, but these errors were encountered: