Search code examples
ios8xcode6

Is it possible to change the view size of iOS 8 Action Extension?


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


Solution

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

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

    in viewDidLoad