gpt4 book ai didi

ios - 带有葫芦滑动的 UIPageViewController

转载 作者:行者123 更新时间:2023-11-28 22:02:54 24 4
gpt4 key购买 nike

我一直在四处寻找这个问题的解决方案,而且我是 calabash 的新手,所以我认为提问是一个好的开始。

我有一个 UIPageViewController,我想用 Calabash 测试它。我试过使用

Then I swipe right

它不适用于 UIScrollViewPageView。然后我发现它可以与 UIScrollView 一起使用,但仍然无法与 PageView 一起使用。

Then /^I swipe pageView to the (left|right|up|down)$/ do |direction|
scrollViews = query("scrollView")
scroll("scrollView index:0", direction)
sleep(STEP_PAUSE) # optional
end

Then I swipe to the right

我不知道如何让 UIPageViewController 正常工作。如果有人对此有任何见解,那就太好了!感谢您的帮助!

最佳答案

显然这是一个 apple bug。这是解决方法

Then do right
scroll("scrollView index:0", right)
sleep(STEP_PAUSE)
end

但是滑动现在只能在 ios 7 的纵向方向上工作(另一个错误)

关于ios - 带有葫芦滑动的 UIPageViewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24677778/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com