Add UIPickerView in UIActionSheet from IOS 8 not working

前端 未结 6 2095
时光说笑
时光说笑 2020-11-30 23:37

I am adding UIPickerView to UIActionsheet but its working perfectally in ios 7 but not working in ios 8. Please help me t

6条回答
  •  误落风尘
    2020-12-01 00:00

    It doesn't work because Apple changed internal implementation of UIActionSheet. Please refer to the documentation:

    Subclassing Notes

    UIActionSheet is not designed to be subclassed, nor should you add views to its hierarchy. If you need to present a sheet with more customization than provided by the UIActionSheet API, you can create your own and present it modally with presentViewController:animated:completion:.

提交回复
热议问题