-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
单独使用WMZPageView + 使用UIView作为底部视图 悬停效果 ,view内的滚动视图上下滚动会影响 总体滚动 #120
Comments
没看出什么 是什么问题 |
就是 不在VC 里写上 |
需要加入 在VC中加入 [self.pageView performSelector:@selector(scrollViewDidScroll:) withObject:scrollView]; 解决问题(参考的WMZPageController)
大佬是不是我用的不对 ,你看下代码
`- (void)viewDidLoad {
[super viewDidLoad];
// return NSClassFromString(@"TopSuspensionVC").new;
/// 带滚动视图需实现协议
TopSuspensionView *view = TopSuspensionView.new;
// .wMenuHeightSet(50)
// .wTopSuspensionSet(YES)
// //No为从自定义导航栏顶部开始 yes为从自定义导航栏底部开始
// // .wFromNaviSet(NO)
// //顶部可下拉
// // .wBouncesSet(NO)
// WMZPageView *pageView = [[WMZPageView alloc]initWithFrame:CGRectMake(0, 0, PageVCWidth, PageVCHeight - PageVCNavBarHeight) autoFix:NO param:param parentReponder:self];
// [self.view addSubview:pageView];
}
(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
if (!cell) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"cell"];
}
cell.textLabel.text = @"自定义视图";
cell.detailTextLabel.text = @"自定义cell";
return cell;
}
(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
return 100;
}
(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
return 4;
}
//注释这段代码会出现 滚动冲突
[self.pageView performSelector:@selector(scrollViewDidScroll:) withObject:scrollView];
}
`
The text was updated successfully, but these errors were encountered: