ios - Using a Nib file for a UIView -- Issue with layout -


i using swift create application administering quizzes, , "quiz" view, contains of questions on separate "cards", having issues layout of question card.

i using .xib file create outline card, , placed in storyboard file uiview. on universal preview, appears centered, when run application on various devices, however, while uiview centered , appropriately sized based on device running on (it has white background, visible), nib designed extends past margins set uiview.

how configure nib remains inside of uiview placed on storyboard? have attached screenshots of app running on ipad , iphone 6, current constraints on view, original nib design, size constraints on original .xib file, , universal view.

edit: stackoverflow won't let me post images, linking imgur album screenshots. screenshots

what can see screenshots, put constraints on view (white view background).

now need constraints on buttons , label to. important buttons doesn't have fix width constraint,... tailing , leading constraint. can create similar constraints buttons create constraints view.

all of them has tailing , leading constraint background view.

label :

top constraint, background view fix height

buttons :

top constraint previous button or label fix height


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -