I'm stuck with some sort of casting in Swift as I am very new to Swift.
Here is my code:
if let matchDateTime = item["matchDate"].number {
_matchDateTime=matchDateTime
}
println(_matchDateTime)
let date = NSDate(timeIntervalSince1970:_matchDateTime)
but its giving me the error:
Extra argument timeSinceInterval1970 in call
I don't know whats that error, may be convert NSNumber
to NSTimeInterval
but how? No idea.
Anyone who can help me out with this.
Thanks in advance.