Open ShineWu opened 9 years ago
Nope. The issue (or another issue, possibly) is that
component.setValue(minutes, forComponent: .CalendarUnitMinute)
does not exist in iOS 7, it was added in iOS 8. cf https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSDateComponents_Class/index.html#//apple_ref/occ/instm/NSDateComponents/setValue:forComponent:
The solution is to access the properties directly:
component.minute = minutes
This PR has been just merged and should fix the problem with iOS 7