简体   繁体   中英

How to create menu like this in Swift?

How do I make a small menu like the one below come up when a button is pressed.

The only difference is instead of the options in the image, how do I show buttons. I could't find an example with buttons.

If you want to use it for sharing, use UIActivityViewController

http://nshipster.com/uiactivityviewcontroller/

Otherwise you can use a custom UIView and add anything in it and give it a frame and animate it from the bottom of the screen when your button is pressed

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM