actionsheetpicker

Showing a UIPickerView with UIActionSheet in iOS8 not working

流过昼夜 提交于 2019-12-17 15:43:01
问题 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

Add UIPickerView & a Button in Action sheet - How?

邮差的信 提交于 2019-11-26 00:20:06
问题 My application requires following things to be added in an action sheet. UIToolbar Button on UIToolbar UIPicker Control I have included an image to understand my requirements. Could you please explain, how this can be implemented? 回答1: Update for iOS 7 Apple docs for UIActionSheet: UIActionSheet is not designed to be subclassed, nor should you add views to its hierarchy I recommend against trying to customize the contents of an ActionSheet, as it can lead to serious invalid context errors in