简体   繁体   English

如何在iOS的UIScrollview中使用setOffscreenPageLimit

[英]How to use setOffscreenPageLimit in UIScrollview in iOS

I want to implement ViewPager functionality in iOS. 我想在iOS中实现ViewPager功能。 For example, scrollview is having 10 images. 例如,scrollview有10张图像。 When the user is on his current page, we need to show some extent of either side of pages. 当用户在其当前页面上时,我们需要显示页面两侧的某种程度。

Like In android, View Pager is having a method like, setOffscreenPageLimit. 像在android中一样,View Pager具有setOffscreenPageLimit之类的方法。 It did the same usage. 它的用法相同。 This is example in android 这是android中的示例

android ViewPager customizable android ViewPager可自定义

How can I implement the same functionality in iOS. 如何在iOS中实现相同的功能。

Please suggest me. 请给我建议。

I solved my issue with the help of following link. 我通过以下链接帮助解决了我的问题。

http://cases.azoft.com/creating-image-gallery-ios-apps-uiimageview/ http://cases.azoft.com/creating-image-gallery-ios-apps-uiimageview/

Hope this link is useful for others. 希望此链接对其他人有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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