In C#, if I wanted to parse out a string into a date and timespan, I'd do something similar to the following:
String input = "08:00";
DateTime time;
if (!DateTime.TryParse(input, out time))
{
// invalid input
return;
}
TimeSpan timeSpan = new TimeSpan(time.Hour, time.Minute, time.Second);
My Google-Fu has been less than desirable in finding a way to convert this to Objective-C.
Any suggestions?