Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kal Calendar Same Day Issue #64

Open
ThomasKDev opened this issue Sep 20, 2012 · 0 comments
Open

Kal Calendar Same Day Issue #64

ThomasKDev opened this issue Sep 20, 2012 · 0 comments

Comments

@ThomasKDev
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant