最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

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

Swift crifan 2550浏览 0评论

【问题】

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

去试试:

 

【总结】

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

转载请注明:在路上 » 【未解决】UIActionSheet was deprecated in iOS 8.3: UIActionSheet is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleActionSheet instead

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
84 queries in 0.151 seconds, using 22.08MB memory