开发者

How to release game UIView and go back to the root menu

开发者 https://www.devze.com 2023-01-01 06:58 出处:网络
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,

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消