How to Create a Slide Side Out Submenu

3

How can I add a submenu to an existing menu, example I have the menu Ensino within teaching I want to put Cursos , Intercambio and iniciação cientifica , I'm using a class called SWRevealViewController tableView , it looks like this:

    
asked by anonymous 24.06.2015 / 05:08

2 answers

2

This functionality must be implemented in the tableView itself.

There are several libraries that implement this feature of expanding and shrinking cells in a tableView, also known as accordion .

One that I find quite simple to use is SLExpandableTableView It extends the UITableView class and adds some methods to the delegate and datasource to implement section expansion.

    
24.06.2015 / 13:16
2

Short answer

Do not use side menu. 1 , 2 (both in English)

Long answer

The fact that you use SWRevealViewController is irrelevant. As Rafael Leão said, you just have to fiddle with your UITableView . A very simple solution is to switch your cells to section headers that in the tap show cells section.

    
24.06.2015 / 15:59