for example , 开发者_运维百科when you playing game , you are play in the game UIView
and when you exit your game and return to the game root menu,
there're a 'exit' button on the game UIView
I wanna click this button to release self view and go back to the main menu
how to do this?
Your game UIView
is owned by a UIViewController
? Then just add a button to the view and hook it up to an IBAction
in the UIViewController
that pops or dismisses the view controller.
精彩评论