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

[BUG] [FIXED] ScrollToDateBroken in latest 6.0.5 release for Vertical Calendar mode #223

Closed
ekoranek12 opened this issue Dec 9, 2016 · 2 comments

Comments

@ekoranek12
Copy link

After updating to 6.0.5 I have been unable to programmatically scroll to a date.

I'm building for iOS 10. This is my calendar setup:

class CalendarViewController: UIViewController, JTAppleCalendarViewDataSource, JTAppleCalendarViewDelegate {
	@IBOutlet weak var calendarView: JTAppleCalendarView!

    override func viewDidLoad() {
        super.viewDidLoad()
        calendarView.dataSource = self
        calendarView.delegate = self
        calendarView.registerCellViewXib(file: "CalendarCollectionViewCell")	
        calendarView.scrollEnabled = true
        calendarView.scrollingMode = .stopAtEachCalendarFrameWidth
        calendarView.direction = .vertical

        // This line does nothing..
        calendarView.scrollToDate(Date(), triggerScrollToDateDelegate: false, animateScroll: false, preferredScrollPosition: nil, completionHandler: nil)
    }
}

I've also tried various combinations of arguments in JTAppleCalendarView.scrollToDate() and have had no luck.

@patchthecode
Copy link
Owner

@ekoranek12 can you join me here? https://gitter.im/patchthecode/JTAppleCalendar

@patchthecode patchthecode self-assigned this Dec 9, 2016
@patchthecode patchthecode changed the title scrollToDate() does not work. ScrollToDateBroken in latest 6.0.5 release for Vertical Calendar mode Dec 9, 2016
@patchthecode
Copy link
Owner

Working on this now.

@patchthecode patchthecode reopened this Dec 12, 2016
@patchthecode patchthecode changed the title ScrollToDateBroken in latest 6.0.5 release for Vertical Calendar mode [BUG] [FIXED] ScrollToDateBroken in latest 6.0.5 release for Vertical Calendar mode Dec 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants