简体   繁体   中英

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.

在界面构建器中为ScrollView选中了“保持分页已启用”。

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM