Hello all,Calendar, NSDate, etc. This line:
let differenceComponents:NSDateComponents = calendar.components(.Year | .month | .Week | .Day | .Hour | .Minute, fromDate:date, toDate:nowDate, options:0)
gives the error:
type of statement is ambiguous without more context
I'm wondering why it would be, and what I can do to fix it? The function being called returns NSDateComponents, which I assign to my variable. I'm not seeing the ambiguity, and Google has nothing to say on the topic that relates to this. I just found a couple instances where the person either had to change a function or do something different with the options. Thanks.
Sorry if this isn't the list for this. I have an iOS app and I'm just starting to explore NS