-
Notifications
You must be signed in to change notification settings - Fork 11
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
Defining constraints of calendar view #11
Comments
I calculate the column widths here https://github.com/nbwar/NWCalendarView/blob/master/NWCalendar/NWCalendarMonthView.swift#L184 Are you using Autolayout to set the width and height of the calendar? |
Yes using Autolayout |
It sounds look an Autolayout issue. The reason saturday is not seen is because when the column widths are calculated the ViewController is larger so the columns are though to larger. Try creating the calendar by code and see if that fixes your problem. |
Ok I tried
it looks like the calendar isn't populated |
You have to call |
Yes I have this as well |
I would have to see more code to figure out the issue. Does the example work for you? |
This is how I've declared it programatically:
The example works fine, it does seem to be an autolayout issue as I increased the width and height. |
Actually I reverted back to using the calendar through IBOutlet and disabled autolayout for this view
doesn't seem to solve it :( |
I too was wondering how to fix the auto layout issue, daisyramos317, did you manage to fix this, if so can you please share? |
Can you give me steps to reproduce or a sample project with the bugs you are experiencing? |
Where do you define the constraints for the month/weekly view?
If you take a look here, Saturday is cut off.
![image](https://cloud.githubusercontent.com/assets/6922240/13400496/014f9eb0-ded6-11e5-929f-b93d2171cbfd.png)
Also how can I set a selected date to stay selected? unless it's tapped twice to deselect in order to allow the user to select multiple dates that aren't consecutive. I noticed there is a delegate for NWCalendarDayViewDelegate, perhaps there?
Thanks!
Great library by the way
The text was updated successfully, but these errors were encountered: