autoresizingmask - iOS: Using auto resize mask to keep UIView at bottom of phone, no matter the screen size -
i've attached screenshot of color view have positioned @ bottom of screen using auto resize mask.
i've tried every combination of resize masks can think of, when change simulated metric's size 3.5 or 4 inch, doesn't move. :(
what doing wrong? possible auto resizing masks?
edit attached image me anchoring bottom well.
what want like:
the fixed i-beam (the vertical "strut") @ bottom says "keep distance bottom constant" (i.e. stay pegged @ bottom). lack of up-down arrow (the "spring") says "don't change height superview's height changes."
the other three, horizontal components optional: left , right i-beams (struts) "if go between landscape , portrait, keep left , right distances pegged are" , left , right arrow in middle (the spring) says "and let change width superview gets wider or narrower."
this fix 3.5" vs 4.0" problem. should handle different widths (e.g. landscape or if ever use scene subview in custom container or if apple ever releases larger screen devices), should ever need that.
in revised question, that when used autosizing setting, didn't fix problem until rebuilt scene scratch, @ point using autosizing setting did fix it. problem in original scene probably, vinceburn points out, in addition above autosizing settings, 1 of superviews of bottom view not, itself, autosizing correctly. 1 has consider not current view's autosizing settings, of views in view hierarchy.
Comments
Post a Comment