views:

67

answers:

1

Hi all, I have an iPhone app which hides the status bar when run. After launching a MFMessageComposeViewController and dismissing it (after either send or cancel) all my previously drawn elements are shifted down 20px. This is clearly to do with the status bar showing when the MFMessageComposeViewController is presented.

Can I either stop this happening or fix it in my (void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result method to undo the change?

Thanks :)

+1  A: 

OK, turned out I needed to set:

self.wantsFullScreenLayout = YES;

in my view controller. this fixed it. perhaps it's useful to someone else.

Mark McFarlane