File tree Expand file tree Collapse file tree 4 files changed +13
-19
lines changed
DLWeiboProfileController.xcworkspace/xcuserdata/ft_david.xcuserdatad Expand file tree Collapse file tree 4 files changed +13
-19
lines changed Original file line number Diff line number Diff 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];
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments