1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #import <UIKit/UIKit.h>
- #import "Animations/SidebarAnimation.h"
-
- @protocol TheSidebarControllerDelegate;
-
- @interface TheSidebarController : UIViewController
-
- @property (strong, nonatomic) UIViewController *contentViewController;
- @property (strong, nonatomic) UIViewController *leftSidebarViewController;
- @property (strong, nonatomic) UIViewController *rightSidebarViewController;
-
- @property (assign, nonatomic) NSTimeInterval animationDuration;
- @property (assign, nonatomic) CGFloat visibleWidth;
- @property (assign, nonatomic) BOOL sidebarIsPresenting;
- @property (assign, nonatomic) id<TheSidebarControllerDelegate> delegate;
- @property (assign, nonatomic) BOOL storyboardsUseAutolayout;
- @property (nonatomic, strong) UIColor *overlayContentColor;
-
- - (id)initWithContentViewController:(UIViewController *)contentViewController
- leftSidebarViewController:(UIViewController *)leftSidebarViewController;
-
- - (id)initWithContentViewController:(UIViewController *)contentViewController
- rightSidebarViewController:(UIViewController *)rightSidebarViewController;
-
- - (id)initWithContentViewController:(UIViewController *)contentViewController
- leftSidebarViewController:(UIViewController *)leftSidebarViewController
- rightSidebarViewController:(UIViewController *)rightSidebarViewController;
-
- - (id)initWithContentViewController:(UIViewController *)contentViewController
- leftSidebarViewController:(UIViewController *)leftSidebarViewController
- storyboardsUseAutoLayout:(BOOL)storyboardsUseAutoLayout;
-
- - (id)initWithContentViewController:(UIViewController *)contentViewController
- rightSidebarViewController:(UIViewController *)rightSidebarViewController
- storyboardsUseAutoLayout:(BOOL)storyboardsUseAutoLayout;
-
- - (id)initWithContentViewController:(UIViewController *)contentViewController
- leftSidebarViewController:(UIViewController *)leftSidebarViewController
- rightSidebarViewController:(UIViewController *)rightSidebarViewController
- storyboardsUseAutoLayout:(BOOL)storyboardsUseAutoLayout;
-
- - (void)dismissSidebarViewController;
- - (void)presentLeftSidebarViewController;
- - (void)presentLeftSidebarViewControllerWithStyle:(SidebarTransitionStyle)transitionStyle;
- - (void)presentRightSidebarViewController;
- - (void)presentRightSidebarViewControllerWithStyle:(SidebarTransitionStyle)transitionStyle;
-
- @end
-
-
-
- @protocol TheSidebarControllerDelegate <NSObject>
-
- @optional
- - (void)sidebarController:(TheSidebarController *)sidebarController willShowViewController:(UIViewController *)viewController;
- - (void)sidebarController:(TheSidebarController *)sidebarController didShowViewController:(UIViewController *)viewController;
- - (void)sidebarController:(TheSidebarController *)sidebarController willHideViewController:(UIViewController *)viewController;
- - (void)sidebarController:(TheSidebarController *)sidebarController didHideViewController:(UIViewController *)viewController;
- @end
-
-
-
- @interface UIViewController(TheSidebarController)
-
- @property (strong, readonly, nonatomic) TheSidebarController *sidebarController;
-
- @end
|