In my app, I have many text field & at last there is take photo button. But when i return from selecting photo,the inserted textfield Value is shown me blank.
I try with storing the text field value into string when click to photo button. and when i return from that i set the string value to text fied But it shown me Bad excess.
Help me!!
-(void)ViewWillAppear
{
if (clkph) {
txtdate.text=[NSString stringWithFormat:@"%@",phdate];
NSLog(@"%@",txtdate.text);
txttime.text=[NSString stringWithFormat:@"%@",phtime];
NSLog(@"%@",txttime.text);
}
}
-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{
clkph=YES;
phdate=[NSString stringWithFormat:@"%@",txtdate];
NSLog(@"%@",phdate);
phtime=[NSString stringWithFormat:@"%@",txttime];
NSLog(@"%@",phtime);
}
Do this as i assume phdate and phtime as UITextField: