-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Delegate / DataSource || Race Condition ? #518
Comments
I used FSCalendar CocoaPods, using XCode 8.1, running iOS 10.1 |
Just noticed:
and
and
cause crash however, with the configuration below there's no crash, yet, delegates do not work
|
This problem doesn't exist when I import FSCalendar in to my project without Cocoapods, however, now there is another exception that I'll be working to correct:
|
@WenchaoD delegates work, and program no longer crashed with I can tell delegate works because of the behavior with However, I cannot find the callback when I scroll weeks .. The data is lost at the scrolled cells since there's no way to update their values, as here in this link. By the way, if you can also show me how to resize cells .. I'm trying to get 40px height per cell and having no luck with |
I had to add a delegate to FSCalendar at |
The last problem is fixed in development branch. |
I have two scenarios where I programmatically create FSCalendar with a custom FSCalendarCell class.
CustomCell.h:
CustomCell.m
With setting delegates after FSCalendar customization options, I don't get a crash, however, I miss delegates (calendar:didSelectDate:, minimumDateForCalendar:) .. I can tell because the program passes through breakpoints here.
ViewController.m
Following the example with the
configureVisibleCells
, the calendar doesn't update because delegates are not called.However, if I move
self.calendar.dataSource = self;
andself.calendar.delegate = self;
to below the init method, the breakpoints do stop within the delegates. However, I get a nasty crash:The text was updated successfully, but these errors were encountered: