0

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

Kirill SIMAGIN
  • 133
  • 1
  • 6

4 Answers4

1

but in UIActionSheet

[actionSheet addSubview:pickerMoney];

Heading

Sage
  • 94
  • 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,001
  • 6
  • 46
  • 62
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
  • 12,989
  • 7
  • 50
  • 49
-2

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

progrmr
  • 73,806
  • 16
  • 109
  • 147