如何提出uiscrollview modaly
-
19-09-2019 - |
题
我想呈现一个模态视图 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.
不隶属于 StackOverflow