ios - UI loads off centre whilst the Facebook login button works perfectly -
i relatively new user-interface design. question when setting storyboard of ui lined expected when run on ios simulator , ui pushed on right whereas facebook button laid out expected. doing wrong?
how dealing autolayout
? if don't use autolayout
views randomly appear placed correctly when run in simulator
. make think there wrong when in fact expected behavior when not using autolayout
.
if want "sign in", "forget password", , "create account" labels centered, follow these steps.
- command click on labels.
- go bottom of
storyboard
pane , select little button looks smaller rectangle on top of longer one. - in menu select "horizontally in container"
- click "add constraints" button below.
you should other view appear horizontally centered.
Comments
Post a Comment