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

懵懂的女人 提交于 2020-01-14 08:36:27

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!