Kirill SIMAGIN
Kirill SIMAGIN

Reputation: 132

UIPickerView in UIAlertView?

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

Upvotes: 0

Views: 4400

Answers (4)

Jonathan Moffatt
Jonathan Moffatt

Reputation: 13457

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.

Upvotes: 1

Tom Irving
Tom Irving

Reputation: 10069

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

Upvotes: 1

Sage
Sage

Reputation: 120

but in UIActionSheet

[actionSheet addSubview:pickerMoney];

Heading

Upvotes: 1

progrmr
progrmr

Reputation: 77201

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

Upvotes: -2

Related Questions