views:

218

answers:

1

How can I make a Modal View's presentation style UIModalPresentationFormSheet (or something what looks like it) on an iPhone?

Thanks in advance!

+1  A: 

You can't using the built-in frameworks.

You'll have to write your own code to show a view modally that doesn't fully obscure the underlying view, unless someone else has already done that and released it publicly.

Shaggy Frog
Can you give me an idea of how this can be done, please?
Knodel
Off the top of my head? Create a top-level view with a transparent background, and then have a child subview with an opaque background sized smaller than the top-level view. This would be the view for a MyModalViewController class. Add a property that takes a `UIViewController` and a custom setter that takes its `view` and assigns it to that inner view inside the top-level one. You'd present this view controller modally using the usual `presentModalViewController:animated:`
Shaggy Frog
Thank you! I'll try...
Knodel