Push/Present Modal View Controller
Posted
by Yakattak
on Stack Overflow
See other posts from Stack Overflow
or by Yakattak
Published on 2010-02-11T11:54:56Z
Indexed on
2010/06/07
5:02 UTC
Read the original article
Hit count: 525
I have a table in my view controller (let's call it TVC1). I have rows in TVC1 that are used so the user can input some more data in addition to the data on TVC1. So, when someone taps a specific row in TVC1, it will show another view controller (let's call it TVC2). However, when TVC2 is shown, all of the data in TVC1 is cleared. How can I save the data in TVC1? Should I do it through the app delegate?
DescriptionInputViewController *descriptionController = [[DescriptionInputViewController alloc]
initWithNibName:@"DescriptionInputView"
bundle:nil];
[self presentModalViewController:navController animated:YES];
[self.navigationController pushViewController:descriptionController animated:YES];
[descriptionController release];
© Stack Overflow or respective owner