One.
Two, engineering drawings.
Three, code.
AppDelegate.h
#import <UIKit/UIKit.h>@class jasidepanelcontroller; @interface Appdelegate:uiresponder <UIApplicationDelegate>@property (Strong, Nonatomic) UIWindow * window; @property (strong, Nonatomic) Jasidepanelcontroller *Viewcontroller; @end
Appdelegate.m
#import"AppDelegate.h"#import"JASidePanelController.h"#import"CenterViewController.h"#import"LeftViewController.h"#import"RightViewController.h"@implementationAppdelegate@synthesizeviewcontroller;-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (NSDictionary *) launchoptions{Self.window =[[UIWindow alloc] initwithframe:[[uiscreen mainscreen] bounds];// Override point for customization after application launch. Viewcontroller = [[Jasidepanelcontroller alloc] init]; Viewcontroller.shoulddelegateautorotatetovisiblepanel = NO; Viewcontroller.leftpanel = [[[Leftviewcontroller alloc] init]; Viewcontroller.centerpanel = [[Uinavigationcontroller alloc] Initwithrootviewcontroller:[[centerviewcontroller alloc] init]]; Viewcontroller.rightpanel = [[Rightviewcontroller alloc] init]; Self.window.rootViewController = Self.viewcontroller; Self.window.backgroundColor =< Span style= "COLOR: #000000" > [Uicolor Whitecolor]; [Self.window makekeyandvisible]; return YES;}
"Code note" Ios-jasidepanelsdemo (sideways)