6

I'm developing an action extension for iOS 8 at the moment. I want the view to be full screen, and it is on the iPhones, but not on the iPad, on the iPad my extension is presented in a small view in the middle. Is it possible to make it so that it's full screen on the iPad too?

Action Extension view not taking up the full screen size on iPad

Joseph Williamson
  • 771
  • 1
  • 6
  • 18

2 Answers2

6

After a bit of searching around I found all I needed to do was put

[self setPreferredContentSize:CGSizeMake(760.0f, 1024)];

in viewDidLoad

Joseph Williamson
  • 771
  • 1
  • 6
  • 18
5

According to Apple's App Extension Programming Guide you need to add a new boolean value for NSExtensionActionWantsFullScreenPresentation in the NSExtension dictionary.

<key>NSExtension</key>
<dict>
    <key>NSExtensionActionWantsFullScreenPresentation</key>
    <true/>
</dict>
ecnepsnai
  • 1,882
  • 4
  • 28
  • 56
Fei Yang
  • 195
  • 3
  • 11