1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #import <UIKit/UIKit.h>
- @protocol YRSideViewControllerDelegate
- -(void)moveMenu:(NSInteger)left;
- -(void)shoMenu:(NSString *) direction;
- @end
- typedef void(^RootViewMoveBlock)(UIView *rootView,CGRect orginFrame,CGFloat xoffset);
- @interface YRSideViewController : UIViewController
- @property (assign,nonatomic) BOOL needSwipeShowMenu;
- @property (retain,nonatomic) UIViewController *rootViewController;
- @property (retain,nonatomic) UIViewController *leftViewController NS_AVAILABLE_IOS(5_0);
- @property (retain,nonatomic) UIViewController *rightViewController NS_AVAILABLE_IOS(5_0);
- @property (assign,nonatomic) CGFloat leftViewShowWidth;
- @property (assign,nonatomic) CGFloat rightViewShowWidth;
- @property (assign,nonatomic) NSTimeInterval animationDuration;
- @property (assign,nonatomic) BOOL showBoundsShadow;
- @property (copy,nonatomic) RootViewMoveBlock rootViewMoveBlock;
- - (void)setRootViewMoveBlock:(RootViewMoveBlock)rootViewMoveBlock;
- - (void)showLeftViewController:(BOOL)animated;
- - (void)showRightViewController:(BOOL)animated;
- - (void)hideSideViewController:(BOOL)animated;
- @property id<YRSideViewControllerDelegate>delegate;
- @end
|