I am trying to create a small popup view in IB for modal presentation on the iPhone and the view height and width is grayed out and set to 320×480 in IB. Is there a way to do this? I’ve tried various settings but I’ve had no luck so far.
My plan is to display using:
[self presentModalViewController:systemViewController animated:YES];
Actually that is working now but the view is “fullscreen” and I want the modal view on top with the other view showing beneath as a background view.
This will always produce a full screen modal on iPhone, that’s how the OS handles modals for that platform. Only on iPad are you able to change the presentation style to be page sheet, form sheet, or full screen.
You will need to implement something custom to achieve what you’re after. This article is very in depth on creating a custom alert view for iPhone, which I believe you’d be able to adapt for your needs:
http://iphonedevelopment.blogspot.co.uk/2010/05/custom-alert-views.html
P.S: The method of modal invokation you’ve provided is now depricated, in future, if you need to produce normal modal view controllers, please use: