Showing a UIPickerView
with UIActionSheet
in iOS8 not working
The code works in iOS7, however it is not working in iOS8. I'm sure it is because UIActionSheet is deprecated in iOS8 and Apple recommends to use UIAlertController
.
However, how to do it in iOS8? I should use UIAlertController
?
iOS7:
iOS8:
EDIT:
Best Answer
From the reference for UIActionSheet:
My guess is your seeing exactly why.
The reference for UIAlertController doesn't have a similar disclaimer, but looking at its interface, my guess is Apple will add it before release.
My recommendation would be to just create a small view containing your picker and buttons and show and hide it as needed. It's not that hard to do and your not pushing interfaces beyond their intended uses.