ios - Problems with Auto Layout with collision -


i'm trying use size classes in new storyboard auto layout , cannot seem make constraints work properly. have game uses ton of collision , without autolayout scales on iphone 5. when change iphone 4 or iphone 6 or other layout, storyboard gets cut off on side. tried fix using autolayout, when select it, ruins collision. brings object in storyboard , applies collision.

on top of that, seems there no clearcut way resize autolayout/size classes (unless i'm missing somewhere). there tutorial on working constraints in xcode 6 collision isn't reset/ruined , scales ios devices?

if turn on autolayout unable move view (by manipulating frame) has constraint applied it. assigning new cgrect uiview won't move object if object has x,y constraint set.

you'll instead need create iboutlets each constraint want move or resize. create outlets

yourviewconstraintx; yourviewconstrainty; 

and can update them self.yourviewconstraintx.constant = 20;


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -