i have 2 view controller and a navigation controller . we shall say main for 1 and detail for 2. when i push button in main, detail opens and main opens with back button
well, i want to change a label text or a string in main view controller when i clicked a button and back button on detail view controller.
how can i make this?
if([segue.identifier isEqualToString:@"deneme"])
{
MainViewController *main=[segue destinationViewController];
main.detay=@"denme";
}
i tried prepareForSegue and function that i wrote but i couldn't.
"koediseps"
i have written a demo for passing data for you, download it and check it. if you found any problem , ask me.
here is the link for data passing with delegate demo
some other useful link simple-delegate-tutorial-for-ios-development
passing-data-using-delegates-between-viewcontrollers