Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I make a back bottom #6

Open
waichoi923 opened this issue Apr 19, 2019 · 2 comments
Open

How can I make a back bottom #6

waichoi923 opened this issue Apr 19, 2019 · 2 comments

Comments

@waichoi923
Copy link

How can I make a back bottom when I end the game?

@ShawnMa16
Copy link
Owner

ShawnMa16 commented Apr 19, 2019

Do you mean a back button to exit the game?

You can make a function and put exit(-1) in it to exit,
or you can put this

UIControl().sendAction(#selector(NSXPCConnection.suspend),
                       to: UIApplication.shared, for: nil)

But killing the app is not recommended by Apple see here

@waichoi923
Copy link
Author

waichoi923 commented Apr 20, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants