ios - Aligning Elements in Xcode -
i seem having trouble aligning elements. want uitextfield center horizontally, , stay towards top of app.
this looks on storyboard:
as can see, there constraints set - blue lines (i think means correct)
however when view in simulator:
these settings in xcode pin popup:
question:
how uitextfield stay center horizontally, regardless of device or orientation?
edit 1:
i took out constraints, made uilabel full width of view, , centered text inside. assumed make center, alas not.
edit 2:
see 2 red squares, i'm not sure how change text. there no options on edit.
i cant see how add other constraints suggested.
Comments
Post a Comment