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:
To achieve the same visual effect you can use ActionSheetPicker-3.0, that works with iOS 8.
Actually, it's not
UIActionSheet
anymore. But looks exactly the same, and that's why it works on iOS 8.Look at my code