问题
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?
回答1:
After a bit of searching around I found all I needed to do was put
[self setPreferredContentSize:CGSizeMake(760.0f, 1024)];
in viewDidLoad
回答2:
This is the answer from apple's App Extension Programming Guide:
来源:https://stackoverflow.com/questions/25871916/is-it-possible-to-change-the-view-size-of-ios-8-action-extension