Sunday 15 February 2015

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



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

i'm writing ios 8 constraints in code instead of ib oh-so-many-reasons. not see way write constraints activated in "size classes", can in ib.

i suppose watch alter in screen aspect ratios , resetting constraints, there more documented way?

thanks! henry

check out uitraitcollection , uitraitenvironment.

uiviewcontroller conforms uitraitenvironment means can hold of it's uitraitcollection , react when changes via traitcollectiondidchange:

uitraitcollection contains horizontal , vertical sizeclass info along displayscale , userinterfaceidiom.

ios class size autolayout

No comments:

Post a Comment