Search code examples
iosios6uiactionsheetmfmailcomposeviewcontroller

MFMailComposeViewController UIActionSheet position in iPhone 5 long screen


I am in the middle of porting an old app to fit the longer screen of iPhone 5. I am wondering why the built-in UIActionSheet (Cancel) of MFMailComposeViewController is not aligned to bottom, as shown:

  enter image description here

Is this controlled by the parent view? Where should I take a look into?


Solution

  • Use this piece of code in app delegate's applicationDidFinishLaunching method

    [window setFrame:[[UIScreen mainScreen] bounds]];