//
// MFSideMenuContainerViewController.h
// MFSideMenuDemoSplitViewController
//
// Created by Michael Frederick on 4/2/13.
// Copyright (c) 2013 Frederick Development. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MFSideMenuShadow.h"
extern NSString * const MFSideMenuStateNotificationEvent;
typedef enum {
MFSideMenuPanModeNone = 0, // pan disabled
MFSideMenuPanModeCenterViewController = 1 << 0, // enable panning on the centerViewController
MFSideMenuPanModeSideMenu = 1 << 1, // enable panning on side menus
MFSideMenuPanModeDefault = MFSideMenuPanModeCenterViewController | MFSideMenuPanModeSideMenu
} MFSideMenuPanMode;
typedef enum {
MFSideMenuStateClosed, // the menu is closed
MFSideMenuStateLeftMenuOpen, // the left-hand menu is open
MFSideMenuStateRightMenuOpen // the right-hand menu is open
} MFSideMenuState;
typedef enum {
MFSideMenuStateEventMenuWillOpen, // the menu is going to open
MFSideMenuStateEventMenuDidOpen, // the menu finished opening
MFSideMenuStateEventMenuWillClose, // the menu is going to close
MFSideMenuStateEventMenuDidClose // the menu finished closing
} MFSideMenuStateEvent;
@interface MFSideMenuContainerViewController : UIViewController<UIGestureRecognizerDelegate>
+ (MFSideMenuContainerViewController *)containerWithCenterViewController:(id)centerViewController
leftMenuViewController:(id)leftMenuViewController
rightMenuViewController:(id)rightMenuViewController;
@property (nonatomic, strong) id centerViewController;
@property (nonatomic, strong) UIViewController *leftMenuViewController;
@property (nonatomic, strong) UIViewController *rightMenuViewController;
@property (nonatomic, assign) MFSideMenuState menuState;
@property (nonatomic, assign) MFSideMenuPanMode panMode;
// menu open/close animation duration -- user can pan faster than default duration, max duration sets the limit
@property (nonatomic, assign) CGFloat menuAnimationDefaultDuration;
@property (nonatomic, assign) CGFloat menuAnimationMaxDuration;
// width of the side menus
@property (nonatomic, assign) CGFloat menuWidth;
@property (nonatomic, assign) CGFloat leftMenuWidth;
@property (nonatomic, assign) CGFloat rightMenuWidth;
// shadow
@property (nonatomic, strong) MFSideMenuShadow *shadow;
// menu slide-in animation
@property (nonatomic, assign) BOOL menuSlideAnimationEnabled;
@property (nonatomic, assign) CGFloat menuSlideAnimationFactor; // higher = less menu movement on animation
- (void)toggleLeftSideMenuCompletion:(void (^)(void))completion;
- (void)toggleRightSideMenuCompletion:(void (^)(void))completion;
- (void)setMenuState:(MFSideMenuState)menuState completion:(void (^)(void))completion;
- (void)setMenuWidth:(CGFloat)menuWidth animated:(BOOL)animated;
- (void)setLeftMenuWidth:(CGFloat)leftMenuWidth animated:(BOOL)animated;
- (void)setRightMenuWidth:(CGFloat)rightMenuWidth animated:(BOOL)animated;
// can be used to attach a pan gesture recognizer to a custom view
- (UIPanGestureRecognizer *)panGestureRecognizer;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
使用 MFSideMenu 实现类似 Facebook iOS App 的界面效果,提供一个滑动的菜单导航。 MFSideMenu 这个控件使用起来比较方便,而且它支持 ARC,也支持 StoryMainBoard。 示例往左滑动到自定义表格视图,往右滑动到省市列表视图,另外涉及到 UINavigationController 及 UIBarButtonItem控件的使用。 本示例代码结构清晰,注释详尽,有助于初学者入门。
资源推荐
资源详情
资源评论
收起资源包目录
MySideMenu.zip (53个子文件)
MySideMenu
MySideMenuTests
en.lproj
InfoPlist.strings 45B
MySideMenuTests-Info.plist 687B
MySideMenuTests.m 644B
MySideMenu.xcodeproj
project.xcworkspace
contents.xcworkspacedata 155B
xcuserdata
dragonfly.xcuserdatad
UserInterfaceState.xcuserstate 78KB
xcuserdata
dragonfly.xcuserdatad
xcdebugger
Breakpoints_v2.xcbkptlist 91B
xcschemes
xcschememanagement.plist 572B
MySideMenu.xcscheme 4KB
project.pbxproj 43KB
MySideMenu
ViewController.xib 2KB
ViewController.m 7KB
icon.png 8KB
MySideMenu-Prefix.pch 496B
en.lproj
InfoPlist.strings 45B
ProvinceCities.plist 3KB
main.m 336B
EGOTableViewPullRefresh
.DS_Store 6KB
Classes
.DS_Store 6KB
View
EGORefreshTableHeaderView.h 3KB
EGORefreshTableHeaderView.m 8KB
Resources
.DS_Store 6KB
blackArrow@2x.png 2KB
whiteArrow.png 4KB
blueArrow.png 4KB
whiteArrow@2x.png 2KB
grayArrow@2x.png 2KB
grayArrow.png 2KB
blueArrow@2x.png 1KB
blackArrow.png 4KB
MyMenuController.h 859B
MyMenuController.m 4KB
Images.xcassets
LaunchImage.launchimage
Contents.json 442B
AppIcon.appiconset
Contents.json 333B
CustomCellViewController.h 997B
MFSideMenu
UIViewController+MFSideMenuAdditions.h 543B
MFSideMenuContainerViewController.m 28KB
MFSideMenuShadow.h 733B
Images
menu-icon.png 1KB
back-arrow@2x.png 4KB
menu-icon@2x.png 1KB
Default-568h@2x.png 18KB
back-arrow.png 3KB
MFSideMenuShadow.m 3KB
MFSideMenuContainerViewController.h 3KB
UIViewController+MFSideMenuAdditions.m 928B
MFSideMenu.h 256B
MySideMenu-Info.plist 1KB
ViewController.h 2KB
AppDelegate.h 331B
CustomCellViewController.xib 2KB
CustomCellViewController.m 5KB
AppDelegate.m 4KB
MyMenuController.xib 2KB
共 53 条
- 1
资源评论
Hollydragon
- 粉丝: 1
- 资源: 78
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Flume进阶-自定义拦截器jar包
- Dubins曲线算法讲解和在运动规划中的使用.pdf
- 上市公司-股票性质数据-工具变量(民企、国企、央企)2003-2022年.dta
- 上市公司-股票性质数据-工具变量(民企、国企、央企)2003-2022年.xlsx
- Reeds+Shepp曲线算法讲解和实现.pdf
- 毕业设计基于SpringBoot+MyBatisPlus+MySQL+Vue的外卖配送信息系统源代码+数据库
- 词向量(Word Embeddings)是自然语言处理(NLP)领域的一种重要技术.txt
- Surfer,线性函数
- MyBatis 的动态 SQL 是其核心特性之一.txt
- 时代的sdddsddsddsd
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功