【未解决】UIActionSheet was deprecated in iOS 8.3: UIActionSheet is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleActionSheet instead

【问题】

swift代码出错:

controller/tabcontroller/mycontroller/PersonalViewController.swift:26:63: ‘UIActionSheet’ was deprecated in iOS 8.3: UIActionSheet is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleActionSheet instead

如图:

UIActionSheet was deprecated in iOS 8.3 UIActionSheet is deprecated

【解决过程】

1.搜:

‘UIActionSheet’ was deprecated in iOS 8.3: UIActionSheet is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleActionSheet instead

参考:

iphone – How to change global tint color on iOS 9? – Stack Overflow

没人回复。

2.再去参考:

UIActionSheet Class Reference

preferredStyle – UIAlertController Class Reference

UIAlertController Class Reference

UIAlertController Class Reference

还是不行。

3.参考:

iphone – Add UIPickerView in UIActionSheet from IOS 8 not working – Stack Overflow

http://stackoverflow.com/questions/24366437/add-uipickerview-in-uiactionsheet-from-ios-8-not-working

去试试:

 

【总结】

暂时有其他安排,暂时放弃。有空再去试试。



发表评论

电子邮件地址不会被公开。 必填项已用*标注

无觅相关文章插件,快速提升流量