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(包含按钮)
当我单击 view6 中的按钮时,我需要滚动屏幕顶部并将 view3 显示给 iPhone 中的用户。
为此,您只需为第三个视图设置滚动视图的框架。使用这行代码我认为这对您有用。试试这个。根据您的坐标设置所有这些
self.scrollview.frame=CGRectMake(x, y, width, height);