Showing a UIPickerView with UIActionSheet in iOS8 not working
问题 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: My GitHub project solving the problem. 回答1: From the reference for UIActionSheet: UIActionSheet is not designed to be subclassed, nor should you add views to its hierarchy. If you