我使用了启用了水平滑动的UIScrollView。
滚动视图的标题为Instructions for Using this App
在此之下,我有instructions
,每个“页面”有一条指令。
当用户水平滚动时,会显示新指令。但是,在此水平滚动期间,第二页的“使用此应用程序的说明”也会显示为移动。
Instructions for Using this App <--- I do not want this to appear to slide
1. Instruction number 1. XYZ...
more text more text more text
more text more text more text <--- I want only this to slide
如何实现这一目标?
答案 0 :(得分:1)
您可以在UIScrollView的顶部放置单独的UIView(可能是UILabel),因此您的UI层次结构将类似于:
UIView (screen)
UILabel (header)
UIScrollView (scrolled content)