Add UIPickerView & a Button in Action sheet - How?

后端 未结 11 1442
遥遥无期
遥遥无期 2020-11-22 15:40

My application requires following things to be added in an action sheet.

  • UIToolbar
  • Button on UIToolbar
  • UIPicker Control

I have

11条回答
  •  感情败类
    2020-11-22 16:15

    Even though this question is old, I'll quickly mention that I've thrown together an ActionSheetPicker class with a convenience function, so you can spawn an ActionSheet with a UIPickerView in one line. It's based on code from answers to this question.

    Edit: It now also supports the use of a DatePicker and DistancePicker.


    UPD:

    This version is deprecated: use ActionSheetPicker-3.0 instead.

    animation

提交回复
热议问题