开发者

Problem UIScrollView pagingenabled in IOS 3.1.3

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜