NSHourCalendarUnit and NSMinuteCalendarUnit are deprecated. How to split up hours and minutes?
ios, ios8, objective-c
Solution
They've been replaced by `NSCalendarUnitMinute`, `NSCalendarUnitSecond`, etc. When you type `NSMinuteCalendarUnit` into your code (in Xcode 6.1 anyway), it should give you a warning, that if you read it, tells you the new values.
Problem
I have implemented NSCalendarUnit in my project to split hours and minutes . Here is the code.. ``` [calendar components:( NSHourCalendarUnit | NSMinuteCalendarUnit | NSSecondCalendarUnit ) fromDate:[df dateFromString:[NSString stringWithFormat:@"%@",workendTime_txtfld.text]]]; ``` In IOS8, `NSHourCalendarUnit`,`NSMinuteCalendarUnit`,`NSSecondCalendarUnit` these all are deprecated now how to handle this issue. Kindly let me know the solution for this issue..