5

How can I create a modal window in my iPad app similar to the one shown on Apple's website for composing messages in Mail.app?

Example:

http://dl.getdropbox.com/u/413086/mail_type_20100225.jpg

Thanks!

igul222
  • 8,557
  • 14
  • 52
  • 60
  • 2
    The iPhone SDK version 3.2 (the iPad version) is still under NDA, so any answer to this may be against Apple's developer agreement. That said, don't expect a lot of responses. – Jeff Kelley Mar 20 '10 at 22:42

1 Answers1

12

Just use a normal view controller, assign the modalPresentationStyle property, and present it as a modal view controller. Please read the "iPad Programming Guide" / "Views and View Controllers" for detail.

kennytm
  • 510,854
  • 105
  • 1,084
  • 1,005
  • 2
    http://developer.apple.com/iphone/library/documentation/General/Conceptual/iPadProgrammingGuide/UserInterface/UserInterface.html – oberbaum Apr 14 '10 at 13:42
  • 1
    The `modalPresentationStyle` you are looking for by the way igul222, is `UIModalPresentationFormSheet`. – Dimitris Apr 25 '10 at 18:32
  • 1
    [Modal Presentation Style](http://developer.apple.com/library/ios/documentation/uikit/reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/modalPresentationStyle) (UIViewController Class Ref) – RyanJM Dec 28 '10 at 17:48