Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Today Extension on Universal applications

How can I create a storyboard that works well on both iPad and iPhone for a Today Extension? Can I use size classes? There are other methods? Thanks in advance

like image 377
Andrea Mario Lufino Avatar asked Sep 04 '14 08:09

Andrea Mario Lufino


People also ask

What is the window application extension?

App extensions were introduced in the Windows 10 Anniversary edition (version 1607, build 10.0. 14393). App extensions are UWP apps or packaged desktop apps that have an extension declaration that allows them to share content and deployment events with a host app. An extension app can provide multiple extensions.

What is an app extension?

An app extension lets you extend custom functionality and content beyond your app and make it available to users while they're interacting with other apps or the system. You create an app extension to enable a specific task.

Is UWP still relevant?

It's still used for what is often called "classic Windows desktop development." UWP, a "modern" take on Windows development, provides a common type system and application model and APIs for all Windows 10 devices.


1 Answers

The solution is to activate size classes for the storyboard and then change the Simulated Size of the View Controller to Fixed.

You do not need to create multiple storyboards, but just activate size classes. I don't know why it's disabled per default.

Activate Use Size Classes

This next step will change your views to the generic size.

Change Simulated Size to Fixed

And now you have to fix your UI elements to be generic and adaptable through auto-layout.

EDIT: And if you have something like a "fullscreen" tableview within the view, which is the widget, don't forget to create constraints for the nested "fullscreen" view, otherwise it will work on the iPad but overlap on the iPhone.

like image 63
LetzFlow Avatar answered Sep 21 '22 23:09

LetzFlow