I´m following along with the Bloc.io Swiftris tutorial where they initialize a date by:
lastTick = NSDate.date()
Which causes a compile error:
'date()' is unavailable: use object construction 'NSDate()'
Which should equal:
NSDate *lastTick = [NSDate date];
(from the NSDate reference)
Did Apple change the Swift interface to NSDate, since I have seen other examples that use NSDate.date
?
Is this just NSDate or can you not call type methods for any Objective-C APIs?