I’m trying to create a transparent modal ViewController, which overlays the current ViewController. I set the backgroundcolor to clearcolor but the background is black,
because the other viewcontroller is not shown behind the new viewcontroller. I want a overlay like a UIAlertView.
I googeled a lot, and the only solution i found was to add a subview.
I’m using iOS5.
Set the background color to clear after u present the Model View, setting the background as clear and then presenting will not work.
If u want to present the view like the UIAlertView use this-
U can over ride the
willMoveToSuperViewmethod with the code given above.