let currentDayOfWeek = NSCalendar.currentCalendar().component(.CalendarUnitWeekday, fromDate: NSDate())
In this place I get an error:
NSCalendarUnit.Type
doesnt have a member namedCalendarUnitWeekDay
let currentDayOfWeek = NSCalendar.currentCalendar().component(.CalendarUnitWeekday, fromDate: NSDate())
In this place I get an error:
NSCalendarUnit.Type
doesnt have a member namedCalendarUnitWeekDay
It doesn't, it does have
Weekday
, which can be used in this way: