Is it possible to display an irregularly shaped Modal view using presentModalViewController? The modal is covering the screen partially (presentation style is set to UIModalPresentationFormSheet)
I tried simply setting the superview clipsToBounds to NO, it didn’t work. I can’t seem to get rid of the rounded corner as well.
PS: I am trying to avoid having to create a custom view and do this manually.
PPS: I noticed from the docs that we are supposed to use presentViewController now in iOS 5. It didn’t accomplish anything different though.
I sort of got it working. It’s a bit of a hack, but it works.
The code (this is inside the controller who spawn the modal):
Now just make the modal’s views bigger than the superview and you can go crazy with the shape.
Note that touches will only register on the superview area.