简体   繁体   中英

Picker View constraints iphone4/iphone5

I have a picker view on ios7. This picker view as at the bottom of the view controller. On the iPhone 5 it displays fine, and its big enough to see the options in the picker view.

On the iPhone 4 it is too small to see the options in the picker view.

I know I have to use constraints, but any idea which way to go with this one.

The picker view is stuck to the bottom of the vc.

thanks

In storyboard, simply ctrl-click-drag to the view you want to make the constraint with like this:

在此处输入图片说明

and then you can see all your constraints on the right side of Xcode:

在此处输入图片说明

In simple way.

Click on the picker and click on the " Add missing Constraints "

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM