0
我使用的Xcode 4.5.2工作,我加了一個UIScrollView
我在viewDidAppear
檢查彈跳平鋪在IB和setAlwaysBounceHorizontal
到YES
,它工作正常,但顯然UIScrollView
當我加載另一個視圖,並返回到它已被調整,雖然viewDidAppear
有setContentSize
:的UIScrollView不能與多視圖的Xcode 4.5.2
-(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];
}
希望能夠找到一個解決方案..
謝謝大家:)