如何修改这段代码
我读了帖子 Add UIPickerView &操作表中的按钮 - 如何?
我想从 nsarray 将数据添加到 uipicker 视图,特别是我有两个按钮,它们将调用不同的两个 uipickerview ,所以我无法使用 uipickerview 的委托,
代码是什么要关闭此 uipickerview
任何建议,请
I read the post Add UIPickerView & a Button in Action sheet - How?
I want to add data to the uipicker view from nsarray , specially I have two buttons that they will call different two uipickerview , so I cannot use the delegate of uipickerview
also what is the code to clise this uipickerview
any suggestion please
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用该方法,您实际上会传递适当的pickerview...因此您可以从中找出您正在处理的pickerview。它与大多数其他委托方法相同。因此,请使用它来确定您正在处理的选择器视图并相应地更改内容。
要摆脱操作表,您可以执行以下操作:
If you use that method you are acctually being passed the appropriate pickerview... so you can work out what pickerview you are dealing with from that. Its the same with most of the other delegate methods. So use that to work out what picker view you are dealing with and change the content accordingly.
To get rid of the actionsheet you can do: