0

Is it possible to put UIPickerView into UIAlertView?If yes, can you give an example?

Kirill SIMAGIN
  • 132
  • 1
  • 7

4 Answers4

1

but in UIActionSheet

[actionSheet addSubview:pickerMoney];

Heading

Sage
  • 120
  • 6
1

There's an example here of adding a UITableView, you should be able to adapt it to suit your purposes.

Tom Irving
  • 10,041
  • 6
  • 47
  • 63
1

Nope. But you can embed a picker in a UIActionSheet, which lets you give the user a nice slide up and slide down animation when showing or dismissing the picker.

There are a couple of good examples of the technique here and here.

Community
  • 1
  • 1
Jonathan Moffatt
  • 13,309
  • 8
  • 51
  • 49
-2

No, UIAlertView only has buttons and you can only set their titles.

progrmr
  • 75,956
  • 16
  • 112
  • 147