Skip to content

Commit 80e0a70

Browse files
committed
Clean
1 parent 809aecc commit 80e0a70

File tree

4 files changed

+13
-19
lines changed

4 files changed

+13
-19
lines changed

DLWeiboProfileController/DLWeiboProfileController/View/ContentViewCell.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ - (void)setPageView {
100100
}
101101

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

107107
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
108108
[super setSelected:selected animated:animated];

DLWeiboProfileController/DLWeiboProfileController/ViewController/PersonalCenterController.m

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ - (void)onOtherScrollToTop:(NSNotification *)ntf {
111111

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

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

129+
130+
#pragma mark - UITableViewDelegate
129131
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
130132
return 1;
131133
}

DLWeiboProfileController/DLWeiboProfileController/ViewController/PersonalCenterTableView.m

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,7 @@
1010

1111
@implementation PersonalCenterTableView
1212

13-
/*
14-
// Only override drawRect: if you perform custom drawing.
15-
// An empty implementation adversely affects performance during animation.
16-
- (void)drawRect:(CGRect)rect {
17-
// Drawing code
18-
}
19-
*/
20-
21-
///允许同时识别多个手势
13+
//允许同时识别多个手势
2214
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
2315
return YES;
2416
}

0 commit comments

Comments
 (0)