Commit 9c97bb2bd63d7396c06428e916059b35076e581c
1 parent
24d8f6e3
no message
Showing
1 changed file
with
10 additions
and
9 deletions
CNLiveBMineModule/Classes/Controller/CNLiveMineController.m
| ... | ... | @@ -93,15 +93,15 @@ static const CGFloat timeValue = 1.5; |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | #pragma mark - UIScrollViewDelegate |
| 96 | -- (void)scrollViewDidScroll:(UIScrollView *)scrollView { | |
| 97 | - CGPoint point = scrollView.contentOffset; | |
| 98 | - if (point.y < -kHEIGHT) { | |
| 99 | - CGRect rect = [self.tableView viewWithTag:666].frame; | |
| 100 | - rect.origin.y = point.y; | |
| 101 | - rect.size.height = -point.y; | |
| 102 | - [self.tableView viewWithTag:666].frame = rect; | |
| 103 | - } | |
| 104 | -} | |
| 96 | +//- (void)scrollViewDidScroll:(UIScrollView *)scrollView { | |
| 97 | +// CGPoint point = scrollView.contentOffset; | |
| 98 | +// if (point.y < -kHEIGHT) { | |
| 99 | +// CGRect rect = [self.tableView viewWithTag:666].frame; | |
| 100 | +// rect.origin.y = point.y; | |
| 101 | +// rect.size.height = -point.y; | |
| 102 | +// [self.tableView viewWithTag:666].frame = rect; | |
| 103 | +// } | |
| 104 | +//} | |
| 105 | 105 | #pragma mark - UITableViewDelegate |
| 106 | 106 | - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ |
| 107 | 107 | return 45; |
| ... | ... | @@ -196,6 +196,7 @@ static const CGFloat timeValue = 1.5; |
| 196 | 196 | if(!_tableView){ |
| 197 | 197 | _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT-TabBarHeight) style:UITableViewStylePlain]; |
| 198 | 198 | _tableView.showsVerticalScrollIndicator = NO; |
| 199 | + _tableView.scrollEnabled = NO; | |
| 199 | 200 | _tableView.delegate = self; |
| 200 | 201 | _tableView.dataSource = self; |
| 201 | 202 | _tableView.separatorStyle = UITableViewCellSeparatorStyleNone; | ... | ... |