I just updated Xcode to version 6.3.
With the exception of all the corrections I have to make regarding as (mainly), I have some warnings that have just appeared (which is strange, as it indicates that it is with iOS 8.0).
My code
NSCalendar.currentCalendar().compareDate(self, toDate: date, toUnitGranularity: .DayCalendarUnit) == .OrderedAscending
now shows a warning
'DayCalendarUnit' was deprecated in iOS version 8.0: Use NSCalendarUnitDay instead
Ok, then I will change .DayCalendarUnit to NSCalendarUnitDay
Now I get the error message:
Use of unresolved identifier 'NSCalendarUnitDay'
I am embarrassed, can someone explain to me what happened and how to fix it?
Nico
source share