Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Liqiankun committed Apr 15, 2017
1 parent 809aecc commit 80e0a70
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 19 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ - (void)setPageView {
}

//用于让pageView到边缘时不让滑动一段距离的问题
//- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
// scrollView.bounces = NO;
//}
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
scrollView.bounces = NO;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ - (void)onOtherScrollToTop:(NSNotification *)ntf {

//当滑动下面的PageView时,当前要禁止滑动
- (void)onScrollBottomView:(NSNotification *)ntf {
// if ([ntf.object isEqualToString:@"ended"]) {
// //bottomView停止滑动了 当前页可以滑动
// self.tableView.scrollEnabled = YES;
// } else {
// //bottomView滑动了 当前页就禁止滑动
// self.tableView.scrollEnabled = NO;
// }
if ([ntf.object isEqualToString:@"ended"]) {
//bottomView停止滑动了 当前页可以滑动
self.tableView.scrollEnabled = YES;
} else {
//bottomView滑动了 当前页就禁止滑动
self.tableView.scrollEnabled = NO;
}
}

//监听segment的变化
Expand All @@ -126,6 +126,8 @@ - (void)onSegmentChange {
self.contentCell.selectIndex = self.segment.selectedIndex;
}


#pragma mark - UITableViewDelegate
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,7 @@

@implementation PersonalCenterTableView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
}
*/

///允许同时识别多个手势
//允许同时识别多个手势
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
return YES;
}
Expand Down

0 comments on commit 80e0a70

Please sign in to comment.