简体   繁体   中英

How to create an “expanding” menu in iOS?

I need to have a menu options on my application, but the various options i have for my application are too many to fit in a screen.

What i find delicate, is what i have seen in various applications where the options are like expanding buttons, that reveal more settings when pressed.

I am attaching a picture of an "expanding" menu, before and after clicked.

在此处输入图片说明

在此处输入图片说明

As you see the options like this look much more delicate.
Does anyone have any idea how i can implement something like that in my app?
Is it something completely customized ?
Is there a tutorial you are aware of , on how to succeed on such an effect?

您可以在此处此处通过一些很好的示例来满足自己的要求,当然需要进行一些修改。

Try this https://github.com/mrdepth/tools/tree/master/CollapsableTableView

You can use this control to show and hide menu.

我建议使用TableView,每个单元格都将具有设置选项,并在单击该单元格时添加和删除带有动画的行;)或创建不同的视图并最初将其隐藏,然后在点击任何设置按钮时只需添加这些视图并打开动画并设置框架。

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