for (int i = 0 ; i < controllersArr.count; i++)
{
UIViewController *vc = (UIViewController *)[controllersArr objectAtIndex:i];
appDelegate().containerScrollViewHeight=self.containerScrollView.frame.size.height;
CGRect frame = CGRectMake(0, 0, self.containerScrollView.frame.size.width, self.containerScrollView.frame.size.height);
frame.origin.x = SCREEN_WIDTH * i;
vc.view.frame = frame;
[self addChildViewController:vc];
[self.containerScrollView addSubview:vc.view];
[vc didMoveToParentViewController:self];
}
使用此编码我添加了多个控制器,如WhatsApp屏幕。在&#34; vc&#34;控制器我使用UITableView(不是UITableview控制器)。当我滚动到最后有一些额外的空间,如何删除这个空间?