Question

I want to present a modal view with a UIscrollView as the content of the view. How would I do this?

Was it helpful?

Solution

As always, do a viewController and set it's view as the scroll view (in load view)

self.view = aScrollView;

and present it modally : (in your first viewController)

[self presentModalViewController:theViewController animated:YES];

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top