ios - Layout looks bad even though constraints are added -


i designed on table view cell , clicked "add missing constraints"

it looks this

enter image description here

but when run on iphone 5s simulator, looks this

enter image description here

it doesn't fit layout , overflows

how can make looks fit on iphone 4-5-6 ?

xcode not know how set constraints cause ui "look good". looking subjective human judgment , computers can't that.

"add missing constraints" make rough guesses, best xcode engineers able generate algorithmically. guaranteed sufficient resolve ambiguities in current set of constraints, not guaranteed smart keeping ui looking good.

auto layout requires you, developer, thoughtful, careful consideration of how ui should under various circumstances. have set constraints achieve that. can't go on autopilot. have work.

if, after setting constraints, still results wrong, need show specific constraints set up, how expected ui laid out in various circumstances, behavior got, , how differs wanted/expected.

for example, screenshots, "it doesn't fit" , "[it] overflows". well, elements of ui want have moved and/or resized, , how, fit , not overflow? want image made smaller? want "feedback" , "download" buttons , stars closer together? want of truncated or clipped if overall width narrow fit of them? etc.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -