ios 实现android 中的DrawerLayout菜单
2017-05-17 08:57
183 查看
用法
////控制隐藏
//-(void) hiddenLeftMenuView{
// [UIView animateWithDuration:leftMenuView.interval animations:^{
// self.navigationController.navigationBar.alpha = 1;
// }];
// [leftMenuView hiddenTime];
//}
/////控制出现
//-(void) showLeftMenuView{
// [UIView animateWithDuration:leftMenuView.interval animations:^{
// self.navigationController.navigationBar.alpha = 0;
// }];
// [leftMenuView showTime];
//}
////创建
//-(void) leftMenuView{
// leftMenuView = [DrawLeftMenuView defaultInitWithFrame:[UIScreen mainScreen].bounds Delegate:self DataSecoure:dataSource];
// [self.view addSubview:leftMenuView];
// [leftMenuView hiddenTime:0.05];
//}
////实现代理,获取点击的位置
//-(void) DrawLeftMenuViewDelegateDidSelectionIndePath:(NSIndexPath *)indexPath DataScoureKey:(NSInteger)key {
// [self hiddenLeftMenuView];
//}
////ViewController将要消失
//-(void)viewWillDisappear:(BOOL)animated {
// [super viewWillDisappear:animated];
// [UIView animateWithDuration:0.1 animations:^{
// menuButton.alpha = 0;
// } completion:^(BOOL finished) {
// [menuButton removeFromSuperview];
// }];
//}
下载代码
http://download.csdn.net/detail/talinboy/9844225
////控制隐藏
//-(void) hiddenLeftMenuView{
// [UIView animateWithDuration:leftMenuView.interval animations:^{
// self.navigationController.navigationBar.alpha = 1;
// }];
// [leftMenuView hiddenTime];
//}
/////控制出现
//-(void) showLeftMenuView{
// [UIView animateWithDuration:leftMenuView.interval animations:^{
// self.navigationController.navigationBar.alpha = 0;
// }];
// [leftMenuView showTime];
//}
////创建
//-(void) leftMenuView{
// leftMenuView = [DrawLeftMenuView defaultInitWithFrame:[UIScreen mainScreen].bounds Delegate:self DataSecoure:dataSource];
// [self.view addSubview:leftMenuView];
// [leftMenuView hiddenTime:0.05];
//}
////实现代理,获取点击的位置
//-(void) DrawLeftMenuViewDelegateDidSelectionIndePath:(NSIndexPath *)indexPath DataScoureKey:(NSInteger)key {
// [self hiddenLeftMenuView];
//}
////ViewController将要消失
//-(void)viewWillDisappear:(BOOL)animated {
// [super viewWillDisappear:animated];
// [UIView animateWithDuration:0.1 animations:^{
// menuButton.alpha = 0;
// } completion:^(BOOL finished) {
// [menuButton removeFromSuperview];
// }];
//}
下载代码
http://download.csdn.net/detail/talinboy/9844225
相关文章推荐
- [AndroidUI]使用DrawerLayout实现侧滑菜单
- Android开发-DrawerLayout实现侧滑菜单(1)-自定义ListView的实现&沉浸式状态栏
- Android组件之DrawerLayout实现抽屉菜单
- Android抽屉菜单DrawerLayout的实现案例
- 我的Android成长之路(3)----使用DrawerLayout实现侧拉菜单
- android 使用DrawerLayout实现侧滑菜单
- Android Toolbar+DrawerLayout+PagerSlidingTabStrip实现仿csdn侧滑菜单
- Android中级:ActionBar + DrawerLayout实现侧滑菜单
- android 使用drawerLayout实现侧滑菜单
- Android 左右滑动菜单 DrawerLayout简单实现
- android DrawerLayout实现仿QQ侧滑菜单
- Android使用DrawerLayout实现仿QQ双向侧滑菜单
- Android侧滑菜单DrawerLayout(抽屉布局)实现
- Android 使用DrawerLayout实现抽屉效果的导航菜单
- Android开发-DrawerLayout实现侧滑菜单(1)
- android开发游记:DrawerLayout 实现抽屉效果的导航菜单
- Android:使用Toolbar + DrawerLayout快速实现菜单侧滑
- Android实现侧滑抽屉菜单(DrawerLayout+NavigationView+toolbar)
- 基于Android官方DrawerLayout实现抽屉导航菜单
- Drawerlayout实现左右nineoldandroids-2.4.0.jar双向侧滑菜单