ios - Is there a code only version of "Size Classes"? -


I'm writing my iOS 8 constraints in the code instead of IO Oh, for a number of reasons, There is no way to write the constraints of the "sections", as you can do in the IB.

I think I can look for changes in the screen aspect ratio and then reset the obstacles, but is there a more documented way?

Thank you! Henry

check UITraitCollection and UITraitEnvironment . Contains UITviewController to UITraitEnvironment which means that you can hold it at UITraitCollection and when it changes through code, the response is also

> TraitcollectionDidChange:

In the UITraitCollection displayScale and userInterfaceIdiom with horizontal and vertical sizes.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -