My problem is how to pass string to another view label? I got try so many example but still can not get the value where I pass.
here is I save the data.
-(IBAction)Save:(id)sender{
timedata = [datePicker date];
NSLog(@"timedata save is = %@",timedata);
time = [NSString stringWithFormat:@"%@",timedata];
NSLog(@"String time = %@",time);
[self dismissModalViewControllerAnimated:YES];
}
here is I want to show the save data.
- (void) viewWillAppear:(BOOL)animated {
show = [[SelectDate alloc]initWithNibName:@"SelectDate" bundle:nil];
show.time = time;
NSLog(@"time = %@",time);
Selectime.text = show.time;
NSLog(@"show.time = %@",show.time);
[super viewWillAppear:animated];
}