Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MainView - UIScrollView - ビュー 1 - ビュー 2 - ビュー 3 - ビュー 4 - ビュー 5 - ビュー 6 (ボタンを含む)
ビュー6のボタンをクリックすると、画面上部をスクロールしてview3をiPhoneのユーザーに表示する必要があります。
そのためには、スクロール ビューのフレームを 3 番目のビューに設定するだけです。このコード行を使用すると、これでうまくいくと思います。
self.scrollview.frame=CGRectMake(x, y, width, height);