This source code is customizable sidebar menu, source Mdmenuviewcontroller,mdmenuviewcontroller provides the use of the sidebar menu. Menu items can be customized and consist of arrays. The text picture on the menu is fully customizable, and the menu also supports horizontal screen.
:
How to use:
Add the entire "Mdmenuviewcontroller classes" folder to your project:
Component individual pages, inheriting the child class:
@interface Aboutviewcontroller:mdmenuchildviewcontroller
@interface Advisoryviewcontroller:mdmenuchildviewcontroller
......
The menu is then made up of arrays:
Nsarray *viewcontrollers = [Nsarray Arraywithobjects:[[servicesviewcontroller alloc]
initwithnibname:@ "Servicesviewcontroller" Bundle:nil],[[favouritviewcontroller alloc]
initwithnibname:@ "Favouritviewcontroller" Bundle:nil],[[contactusviewcontroller alloc]
initwithnibname:@ "Contactusviewcontroller" Bundle:nil],[[aboutviewcontroller alloc]
initwithnibname:@ "Aboutviewcontroller" Bundle:nil], nil];
Mdmenuviewcontroller *MAINVIEWC = [[Mdmenuviewcontroller alloc] initwithchildviewcontrollers:viewcontrollers];
Each sub-interface is also a way to customize menu titles drink pictures:
-(nsstring*) Titleforchildcontrollermdmenuviewcontroller: (Mdmenuviewcontroller *) Menucontroller
{
return @ "about";
}
-(nsstring*) Iconforchildcontrollermdmenuviewcontroller: (Mdmenuviewcontroller *) Menucontroller
{
return @ "Concept-icon-poster60.png";
} |
Detailed Description: http://ios.662p.com/thread-2254-1-1.html
Customizable Sidebar menu iOS source code