In fact, the beginHomeButtonAction doesn't "take you back to the main view". It creates a new view controller, with a new view, and presents that. It's the same kind of controller class, but not the same instance of that class To dismiss the view, and in fact take the user back to the main view, you have to dismiss the view that you presented from the main view.
How to do this depends on how you presented then, but you could try popViewControllerAnimated or dismissModalViewControllerAnimated (google is your friend).
In fact, the beginHomeButtonAction doesn't "take you back to the main view". It creates a new view controller, with a new view, and presents that. It's the same kind of controller class, but not the same instance of that class.To dismiss the view, and in fact take the user back to the main view, you have to dismiss the view that you presented from the main view.
How to do this depends on how you presented then, but you could try popViewControllerAnimated or dismissModalViewControllerAnimated. (google is your friend).
Thank you. I will try and understand exactly what you just said lol. Google is indeed my friend, when I can understand what he is talking about.
But the jargon is all relatively new to me so sometimes difficult. I think I have an understanding of what you are saying so I will give it a try. Thank you – imperiousdev Apr 5 at 10:41 True.
When in doubt, post the code that presents the subviews here, in your original question. – mvds Apr 5 at 10:44 I managed to solve the issue, instead of using this code in my IBAction - iBMRViewController *controller = BeginView alloc initWithNibName:@"iBMRViewController" bundle:nil; - I changed the BeginView alloc to iBMRViewController alloc and it works like a charm. – imperiousdev Apr 6 at 14:56 Still, you're building a new view, instead of going back to the previous, existing view.
– mvds Apr 6 at 15:34.
I have an application which has a number of views which are navigated to via a number of custom UIButtons from my main view. The main view is named iBMRViewController and features some welcome graphics in the form of PNG images dropped in through interface builder. Now, this all works fine and the buttons function perfectly, obviously I also have Actions set up for them which work perfectly.
This also works, however, when it takes me back to the 'iBMRViewController' it ONLY displays what was set up via the interface builder xib file (i.e. The welcome png files). It does not display the buttons I added through code.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.