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
Where do you define the constraints for the month/weekly view?
If you take a look here, Saturday is cut off.
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?
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.
Activity
nbwar commentedon Feb 29, 2016
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?
daisyramos317 commentedon Feb 29, 2016
Yes using Autolayout
I set the constraints to (0, 64, 414, 383)
nbwar commentedon Feb 29, 2016
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.
daisyramos317 commentedon Feb 29, 2016
Ok I tried
var calendarView: NWCalendarView = NWCalendarView()it looks like the calendar isn't populated
nbwar commentedon Feb 29, 2016
You have to call
calendarView.createCalendar()daisyramos317 commentedon Feb 29, 2016
Yes I have this as well
nbwar commentedon Feb 29, 2016
I would have to see more code to figure out the issue. Does the example work for you?
daisyramos317 commentedon Feb 29, 2016
This is how I've declared it programatically:
var calendarView: NWCalendarView = NWCalendarView()calendarView.frame = CGRectMake(0, 64, 414, 383)view.addSubview(calendarView)The example works fine, it does seem to be an autolayout issue as I increased the width and height.
daisyramos317 commentedon Feb 29, 2016
Actually I reverted back to using the calendar through IBOutlet and disabled autolayout for this view
calendarView.translatesAutoresizingMaskIntoConstraints = truedoesn't seem to solve it :(
nbwar commentedon Mar 9, 2016
Can you give me steps to reproduce or a sample project with the bugs you are experiencing?