I am attempting to get the firstWeekday as set in the user's system preferences, using [[NSCalendar currentCalendar] firstWeekday]
, however the value returned is always 1 (Sunday) regardless of what is set in the system preferences. Also tried the autoupdatingCurrentCalendar
with the same results.
From the docs, it states [NSCalendar currentCalendar]
returns a calendar formed from the settings for the current user’s chosen system locale overlaid with any custom settings the user has specified in System Preferences
. From that description it sounds like I should be able to access the firstWeekday set in the user settings.
Anyone have any ideas as to why this is not returning the correct firstWeekday?