Hi,
I'm developing a menu for a game. The menu contains four buttons; Campaign, Training, Highscore and Settings. When I click one of these buttons, a new view controller should be shown. I add the new view controller using this function:
[self.view addSubview:myViewController.view];
It does show the new view controller, but I can still touch the menu buttons from the other view controller that is "behind" the new. I can't see the buttons, but when I touch in the area of a button, the button's IBAction is called.
Of course, I can disable all buttons before adding the subview, but is this the right way to fix it? Should I remove the menu from its subview? I'm using a window-based application and do not have a tab bar or a navigation bar.
Thank you very much!