简体   繁体   English

Xamarin.iOS ScrollView与UIPageViewController的使用,UIScrollView

[英]Xamarin.iOS ScrollView with the use of UIPageViewController, UIScrollView

I'm currently trying to implement a scroll interface the same as this https://developer.xamarin.com/samples/monotouch/FrogScroller/ but instead of scrolling images I want to scroll UIViews. 我目前正在尝试实现与此https://developer.xamarin.com/samples/monotouch/FrogScroller/相同的滚动界面,但我不想滚动图像,而是想滚动UIViews。 I'm trying to reverse engineer this solution but it's proving difficult. 我正在尝试对该解决方案进行逆向工程,但事实证明这很困难。 Does anyone know of an example that already exists for this? 有人知道这个例子吗? Or can anyone suggest how best to achieve this UI? 还是有人可以建议如何最好地实现此UI? I would have thought this was a common UI, allowing the user to swipe to new screens. 我本以为这是一个通用的用户界面,允许用户滑动到新屏幕。

Basically, my app will show a screen which has a list of images based on a subject. 基本上,我的应用程序将显示一个屏幕,其中包含基于主题的图像列表。 The user can swipe left to move to the next subject which swipes the screen along to show the next screen which lists the images about the next subject. 用户可以向左轻扫以移动到下一个主题,该主题随屏幕一起滑动以显示列出有关下一个主题的图像的下一个屏幕。

You can use the UIPageViewController, I have wrote a sample for others, you can check this link: 您可以使用UIPageViewController,我已经为其他人编写了示例,您可以检查以下链接:

xamarin.ios implement PageController with images only code . xamarin.ios仅使用图像代码实现PageController

Customize the ContentViewController, you can put anything you want, or make your own CustomViewController(with the Index property) to instead of it. 自定义ContentViewController,您可以放置​​任何您想要的东西,或将您自己的CustomViewController(带有Index属性)替换为它。

Hope it can help you. 希望它能对您有所帮助。

If you still have any questions, leave it here. 如果您还有任何疑问,请留在这里。

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

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