简体   繁体   中英

UIPickerView position change with autolayout

I came across this problem, and I'm not sure how to solve. I want to animate the position of my pickerView but it wont change it's position as long as i am using autolayout and I can't take autolayout off

Any advice? Thanks

EDIT1

This is what i have, the picker is behind the fray view.

在此处输入图片说明

This is what i want to accomplish. 1)move the picker to the upper limit of the blue button 2)move the grey view to the upper limit of the picker view

在此处输入图片说明

Ok, so after a bit of research and reading. The answer to my problem was solved by working with the constraints constant of my UI

If you want you can read it in this well explained post

Autolayout constraints modification

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