【发布时间】:2012-02-04 05:39:52
【问题描述】:
我有一个UIView,我需要将其拉伸到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),它看起来还可以: 我该怎么做?
【问题讨论】:
标签: ios uiscrollview width stretch cgrect