//
// MFSideMenu.h
//
// Created by Michael Frederick on 3/17/12.
//
#import "UINavigationController+MFSideMenu.h"
static const CGFloat kMFSideMenuAnimationDuration = 0.2f; // default duration for the open/close animation
static const CGFloat kMFSideMenuAnimationMaxDuration = 0.4f; // maximum duration for the open/close animation
typedef enum {
MFSideMenuPanModeNone = 0, // pan disabled
MFSideMenuPanModeRootViewController = 1 << 0, // enable panning on the root view controller, i.e. the navigation controller
MFSideMenuPanModeSideMenu = 1 << 2, // enable panning on side menus
MFSideMenuPanModeDefault = MFSideMenuPanModeRootViewController | 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;
typedef void (^MFSideMenuStateEventBlock)(MFSideMenuStateEvent);
@interface MFSideMenu : NSObject<UIGestureRecognizerDelegate>
@property (nonatomic, readonly) UINavigationController *navigationController;
@property (nonatomic, assign) MFSideMenuState menuState;
@property (nonatomic, assign) MFSideMenuPanMode panMode;
@property (nonatomic, assign) BOOL shadowEnabled;
@property (nonatomic, assign) CGFloat menuWidth; // size of the side menu(s)
@property (nonatomic, assign) CGFloat shadowRadius; // radius of the shadow
@property (nonatomic, assign) CGFloat shadowOpacity;
@property (nonatomic, strong) UIColor *shadowColor;
@property (nonatomic, assign) BOOL menuSlideAnimationEnabled; // should the menus slide in/out with the root controller?
@property (nonatomic, assign) CGFloat menuSlideFactor; // higher = less menu movement on the menu slide animation
// (only applicable if menuSlideAnimationEnabled is YES)
// this can be used to observe all MFSideMenuStateEvents
@property (copy) MFSideMenuStateEventBlock menuStateEventBlock;
+ (MFSideMenu *)menuWithNavigationController:(UINavigationController *)controller
leftSideMenuController:(id)leftMenuController
rightSideMenuController:(id)rightMenuController;
+ (MFSideMenu *)menuWithNavigationController:(UINavigationController *)controller
leftSideMenuController:(id)leftMenuController
rightSideMenuController:(id)rightMenuController
panMode:(MFSideMenuPanMode)panMode;
- (void)toggleLeftSideMenu;
- (void)toggleRightSideMenu;
- (void)setMenuWidth:(CGFloat)menuWidth animated:(BOOL)animated;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
IOS左右滑动显示菜单,类似于FaceBook向左右滑动显示菜单
共101个文件
hmap:10个
o:9个
pbxbtree:8个
5星 · 超过95%的资源 需积分: 32 233 下载量 136 浏览量
2013-04-12
18:02:37
上传
评论 3
收藏 1005KB ZIP 举报
温馨提示
用MFSideMenu第三方代码写的左右滑动。 第三方代码例子:https://github.com/mikefrederick/MFSideMenu
资源推荐
资源详情
资源评论
收起资源包目录
IOS左右滑动显示菜单,类似于FaceBook向左右滑动显示菜单 (101个子文件)
libAdditionSL.a 6KB
CodeResources 839B
CodeResources 28B
control 256KB
build-state.dat 55KB
build-state.dat 45KB
build-state~.dat 43KB
build-state~.dat 17KB
TestApp.dep 7KB
TestApp~.dep 4KB
TestApp.dep 4KB
TestApp~.dep 2KB
.DS_Store 12KB
.DS_Store 6KB
.DS_Store 6KB
MFSideMenu.h 3KB
UINavigationController+MFSideMenu.h 374B
TestAppAppDelegate.h 366B
MainViewContr.h 330B
AddFun.h 287B
SideMenuViewController.h 285B
pbxindex.header 24B
TestApp.hmap 2KB
TestApp.hmap 2KB
TestApp-project-headers.hmap 972B
TestApp-project-headers.hmap 956B
TestApp-own-target-headers.hmap 793B
TestApp-all-target-headers.hmap 793B
TestApp-all-target-headers.hmap 793B
TestApp-own-target-headers.hmap 793B
TestApp-generated-files.hmap 121B
TestApp-generated-files.hmap 121B
TestApp.LinkFileList 410B
TestApp.LinkFileList 410B
TestApp.LinkFileList 404B
MFSideMenu.m 25KB
MainViewContr.m 7KB
TestAppAppDelegate.m 3KB
SideMenuViewController.m 2KB
UINavigationController+MFSideMenu.m 2KB
main.m 358B
embedded.mobileprovision 17KB
tsutomutoraou.mode1v3 40KB
dianxing.mode1v3 39KB
MainWindow.nib 984B
MainWindow.nib 984B
MainViewContr.o 55KB
TestAppAppDelegate.o 51KB
TestAppAppDelegate.o 51KB
TestAppAppDelegate.o 51KB
MainViewContr.o 51KB
MainViewContr.o 51KB
main.o 6KB
main.o 6KB
main.o 6KB
MainViewContr.o~$ 55KB
MainViewContr.o~> 0B
MainViewContr.o~? 36B
decls.pbxbtree 145KB
cdecls.pbxbtree 145KB
refs.pbxbtree 111KB
imports.pbxbtree 9KB
files.pbxbtree 3KB
protocols.pbxbtree 2KB
subclasses.pbxbtree 2KB
categories.pbxbtree 1KB
project.pbxproj 16KB
symbols0.pbxsymbols 623KB
tsutomutoraou.pbxuser 30KB
dianxing.pbxuser 4KB
TestApp_Prefix.pch 183B
PkgInfo 8B
PkgInfo 8B
TestApp-Info.plist 909B
Info.plist 781B
Info.plist 591B
Info.plist 591B
Info.plist 591B
ResourceRules.plist 485B
xcschememanagement.plist 479B
Default-568h@2x.png 18KB
back-arrow@2x.png 4KB
back-arrow.png 3KB
menu-icon.png 1KB
menu-icon@2x.png 1KB
pop_btn_orange.png 959B
pop_btn_orange.png 827B
pop_btn_orange.png 827B
strings 310KB
TestApp 148KB
TestApp 75KB
TestApp 64KB
TestApp 23KB
TestApp 22KB
TestApp 22KB
Breakpoints.xcbkptlist 91B
TestApp.xcent 420B
TestApp.xcscheme 3KB
UserInterfaceState.xcuserstate 17KB
contents.xcworkspacedata 152B
共 101 条
- 1
- 2
think12
- 粉丝: 131
- 资源: 24
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
前往页