0

水平スライドが有効になっているUIScrollViewを使用しています。

スクロールビューの見出しはInstructions for Using this App

その下にはinstructions、「ページ」ごとに1つの命令があります。

ユーザーが水平方向にスクロールすると、新しい指示が表示されます。ただし、この横スクロールでは、2ページ目の「このアプリの使い方」も移動しているように見えます。

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

これを達成する方法は?

4

1 に答える 1

1

UIScrollViewの上に個別のUIView(おそらくあなたの場合はUILabel)を配置できるため、UI階層は次のようになります。

UIView (screen)
   UILabel (header)
   UIScrollView (scrolled content)
于 2012-12-20T16:31:28.503 に答える