romaonthego/RESideMenu — pull request #11 by kirualex (2013-07-02 22:57:35+00:00)
Title: Added sub-menus functionnality

**Sub-menus for RESideMenu**

**Functionality summary**
RESideMenu now offer the possibility to have a hierarchy of menus. When clicking on a menu with sub-items, the menu is updated with a small animation. The first sub-item is automatically a "<" button allowing the user to go up the hierarchy.

**Usage**
You can add sub-items to your current item via the method :
`[myItem setSubItems:@[subItem1,subItem2]]`

**Code impact**
Two classes are impacted :
`RESideMenuItem` which now have a new property `subItems`
`RESideMenu` with following additions :
- New instance variables used to store previous states of menus
- New method `- (void) showItems:(NSArray *)items` called to reload the menu items
- Modified `- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath) indexPath` in order to detect when the user clicked on a menu with sub-items or on the back button

Thanks !