开发者

Pickers like a keyboard

开发者 https://www.devze.com 2023-01-27 00:31 出处:网络
Is it possible to get a double picker to appear from the bottom of a screen when a certain button is selected? And is it possible to remove a value from a picker if 开发者_如何学JAVAit was already sel

Is it possible to get a double picker to appear from the bottom of a screen when a certain button is selected? And is it possible to remove a value from a picker if 开发者_如何学JAVAit was already selected?


Of course it's possible. I did that for an app just this summer. But you'll have to code the component yourself.

My suggestion is to create a class which has a UIPickerView member; this class, when instantiated and sent a message (like -showInView:), will make the view slide up. You'll need to have a delegate protocol for the class; it will probably make sense to have its delegate also implement UIPickerViewDelegate and UIPickerViewDataSource.

0

精彩评论

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