The following is the Bloc.io Swiftris tutorial , where they initialize the date:
lastTick = NSDate.date()
What causes a compilation error:
'date()' is unavailable: use object construction 'NSDate()'
Which should be equal to:
NSDate *lastTick = [NSDate date];
(from NSDate link )
Apple changed the Swift interface to NSDate , since I saw other examples that use NSDate.date ?
Is it just NSDate or can't you call type methods for any Objective-C APIs?
ios objective-c cocoa swift nsdate
max 29 oct. '14 at 10:57 2014-10-29 10:57
source share