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.