开发者

Problem UIScrollView pagingenabled in IOS 3.1.3

开发者 https://www.devze.com 2023-02-11 09:23 出处:网络
I have set paging property of scroll view to \'scrollview.pagingEnabled = YES\'. When testedit seems to be working in IOS 4 and above but it is not开发者_开发问答 working on iOS 3.1.3. Can any one hel

I have set paging property of scroll view to 'scrollview.pagingEnabled = YES'. When tested it seems to be working in IOS 4 and above but it is not开发者_开发问答 working on iOS 3.1.3. Can any one help me with this?


I had this exact same problem! I found that in iOS < 3.2 pagingEnabled=YES only works if bounces=YES which is a bummer. I didn't want bounces to be enabled so in my app I check if iOS < 3.2 and then only enable bounces for those older iOS version.


You should be able to start with pagingEnabled and bounces both set to YES

and then you can set set contentSize=CGSizeMake(width, height);


Keep Paging Enabled checked for ScrollView in interface builder.

0

精彩评论

暂无评论...
验证码 换一张
取 消