改变ScrollView的大小不工作在表查看

问题描述:

所以这就是我的应用程序目前看起来像http://gyazo.com/f26ecd3a9d173ab76ee86946cd7a152c,当我点击更多...(UIButton)scrollView变得稍长,但TableView仍然保持相同的大小http://gyazo.com/f9f36c5b308f209d81d5a75b430eeb03,当我再次开始滚动时,所有事情都会像第一张图片显示的那样恢复正常(scrollView会变成原始大小)。改变ScrollView的大小不工作在表查看

- (IBAction)moreInfo:(id)sender { 

    [UIView animateWithDuration:1 animations:^{ 
     scrollView.frame = CGRectMake(0, 100, 320, 184); 
    }]; 
    [sender setTitle:@"Less..." forState:UIControlStateNormal]; 
} 

的我怎么可能做了滚动做大留即使您在滚动的tableView大任何想法。

另外您还需要调整cell的高度UITableView DataSource。

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath; 

因为你重用celltableview