Quote:
Originally Posted by mavrik5150
On the ViewController that you are presenting if you have a Button or something that is supposed to dismiss that view and bring them back to the previous view then you would use [self dismissModalViewController].
For example in the first ViewController (PoliceWebViewController) you should have some action that would allow the person to return back to PoliceViewController and that's where you would use the dismissModalViewController.
|
I do. I created a button for it. Like a button on my home screen.
Home Screen:iUCFViewcontroller
The "Police Button" is tapped which brings up: PoliceViewController
They can tab the "Main" button the top to go back to the iUCFViewController
OR
The white "UCF Police Website" button is tapped which brings up: PoliceWebViewController
Then they can navigate through the webView OR go back to: PoliceViewController using the method provided.
again. this was done by duplicating the button setup from the iUCFViewController. So I am just creating a huge stack by doing this. I need to find out WHERE in my coding to put "[self dismissModalViewControllerAnimated:YES];" so I dont do that, but no one has been able to tell me WHERE, based on the code I provided above
the "before" and "after" code I did.
I replaced the [NAMEOFVIEW release]
with
[self dismissModalViewControllerAnimated:YES];
but no answers if thats where I SHOULD put it.