I want the user to enter their time, for example they can enter 4:30 and I'll just get the 4 and 30. or is there a easier way to get the time from the textfield? I know how to get a integer from the textfield but I want to know how to get two or the time, whichever one is easier.
-(void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if([[segue identifier]isEqualToString:@"submitsegue"])
{
secondViewController *vc2 = [segue destinationViewController];
vc2.inputfrom1 = [age.text integerValue];
}
}
Thats my code to get a number.