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 named calendarunitweekday

it doesn't, have weekday, can used in way:

let calendar = nscalendar.currentcalendar() let component = calendar.component(.weekday, fromdate:nsdate()) 

Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -