Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode6

ios8

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

like image 249
Joseph Williamson Avatar asked Sep 16 '14 14:09

Joseph Williamson


People also ask

How do I make my iPhone screen smaller?

Go to Settings > Accessibility > Display & Text Size.


2 Answers

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

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

in viewDidLoad

like image 77
Joseph Williamson Avatar answered Oct 21 '22 18:10

Joseph Williamson


This is the answer from apple's App Extension Programming Guide: enter image description here

like image 37
Fei Yang Avatar answered Oct 21 '22 17:10

Fei Yang