简体   繁体   English

如何在Swift中创建UIPickerView选择,以使视图扩展以允许添加选项?

[英]How to create a UIPickerView selection in Swift such that the view expands to allow to add options?

I want to create a selection view like the images, so that the UIPickerView appears for selection and disappears when 'Done' is clicked. 我想创建一个类似于图像的选择视图,以使UIPickerView出现供选择,而在单击“完成”时消失。

Is it possible to create this when using storyboards? 使用情节提要时是否可以创建此文件?

It would be great if you could share descriptive steps to achieve the same. 如果您可以共享描述性步骤以实现相同目标,那就太好了。 A link to a tutorial will also be great. 教程的链接也将很棒。 在此处输入图片说明

在此处输入图片说明

Refer this link , and at the bottom there is a demo project link , see that link:

表格视图单元在IOS 7中扩展

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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