如何修改这段代码
我读了帖子 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
如果您使用该方法,您实际上会传递适当的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: