Hey,
So i have bassicly a main menu, and when the user presses a certain button the buttons on the view are set to hidden and then i load the view up (create an instance of the class which is a UIViewController and then add as a subview)
now i want a button to get back to main menu
if i do [self.view removeFromSuperview];
Then i just get a blank screen
The problem here is that, i make the button's not visible, so i have a method that makes all the main menu buttons visible again, but i can't find a way to call that method
i've tried to create an instance of the parent view and then call the method and then remove from the superview but that doesn't work (didnt think it would)
i tried something like:
UIView *parent = [self superview];
if (parent)
[parent callMethod];
but that doesn't work either
If anyone could help me out that would be appreciated!
btw i did imported the class file so i could call the method from the instance of the class
So i have bassicly a main menu, and when the user presses a certain button the buttons on the view are set to hidden and then i load the view up (create an instance of the class which is a UIViewController and then add as a subview)
now i want a button to get back to main menu
if i do [self.view removeFromSuperview];
Then i just get a blank screen
The problem here is that, i make the button's not visible, so i have a method that makes all the main menu buttons visible again, but i can't find a way to call that method
i've tried to create an instance of the parent view and then call the method and then remove from the superview but that doesn't work (didnt think it would)
i tried something like:
UIView *parent = [self superview];
if (parent)
[parent callMethod];
but that doesn't work either
If anyone could help me out that would be appreciated!
btw i did imported the class file so i could call the method from the instance of the class