我想呈现一个模态视图 UIscrollView 作为视图的内容。我该怎么做?

有帮助吗?

解决方案

与往常一样,请执行一个ViewController并将其设置为滚动视图(在加载视图中)

self.view = aScrollView;

并将其呈现:(在您的第一个ViewController中)

[self presentModalViewController:theViewController animated:YES];

其他提示

Create a standard UIViewController, and give it a UIScrollView as its view member. Then use -[UIViewController presentModalViewController:animated:] on your current (visible) view controller. This will (by default) slide the new one in from the bottom.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top