我有一个UIView
我需要拉伸到 a 的宽度UIScrollView
。问题是下一个:
我需要拉伸那个 UIView(它是 EGOTableViewPullRefresh,只是一个自定义 UIView)。在视图初始化中我放了
[_refreshHeaderView setAutoresizingMask:UIViewAutoresizingFlexibleWidth];
. 我试过:
-(void)scrollViewDidZoom:(UIScrollView *)scrollView {
NSLog(@"scrollViewDidZoom");
[_refreshHeaderView setFrame:CGRectMake(0.0f, 0.0f - webScroller.bounds.size.height, webScroller.frame.size.width, webScroller.bounds.size.height)];
}
但它只是看起来像图像。如果我进入 iOS 设计的页面(例如 Mobile Google),看起来还
可以:我该怎么做?