最新消息:服务器现已从linode换到fzhost.net,且主题已从retina 0.2换为大前端D8

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

Swift crifan 20浏览 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,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
51 queries in 0.538 seconds, using 12.71MB memory