Issues with UIPickerView inside a StackView

眉间皱痕 提交于 2019-12-11 10:29:25

问题


I'm running into a problem with the size of my pickers when I put them inside of a stack view. The pickers change their size to their default size when they are put into the stack view. They do not do this when they are not placed into the stack view


回答1:


Just add height and width constraints to your picker before you add it to your stackview and that should solve your problem.



来源:https://stackoverflow.com/questions/32854074/issues-with-uipickerview-inside-a-stackview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!