我正在使用xCode 4.5.2,我添加了一个并在IB和to中UIScrollView
检查了水平反弹,它工作正常,但显然当我加载另一个视图并返回它时已经调整了大小,尽管有:setAlwaysBounceHorizontal
viewDidAppear
YES
UIScrollView
viewDidAppear
setContentSize
-(void) viewDidAppear:(BOOL)animated{
[scroller setContentSize:CGSizeMake(2000, 90)];
[scroller setAlwaysBounceHorizontal:YES];
[scroller setAutoresizesSubviews:NO];
scroller.showsHorizontalScrollIndicator = NO;
scroller.showsVerticalScrollIndicator = NO;
[scroller setUserInteractionEnabled:YES];
[scroller setScrollEnabled:YES];
[scroller setPagingEnabled:YES];
}
希望能找到解决办法。。
谢谢大家 :)