开发者

UIPickerView Chaging frame Size and positon

Are there any way I can change the size of the PickerView and its position at runtime. What I do need to do was when A certain Row in A certain Component is selected I will got to show the another pickerView on the right side then the first PickerView will resize itself and change its position so that the new PickerView will be seen.

I don't want to put the value of the second Pick开发者_运维知识库erView on the First PickerView cause some items in the first PickerView doesn't have any relation or doesn't need to show other values.


The height and width of picker views is hardwired and unchangeable. (I suspect because of the requirements of the quasi-3D rotation animation.)

The picker view will fill the screen right to left. The only thing you can do is move them up and down.


You can open the design file using a text editor, then find the portion related to the picker view, and finally change the width-height of the pickerview. However, please keep in mind that this also has some limit.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜