nscalendar - NSCalendarUnit.Type doesnt have a member named CalendarUnitWeekDay -
let currentdayofweek = nscalendar.currentcalendar().component(.calendarunitweekday, fromdate: nsdate())
in place error:
nscalendarunit.type
doesnt have member namedcalendarunitweekday
it doesn't, have weekday
, can used in way:
let calendar = nscalendar.currentcalendar() let component = calendar.component(.weekday, fromdate:nsdate())
Comments
Post a Comment