您的位置:首页 > 移动开发 > Android开发

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: