【问题】
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
如图:
【解决过程】
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.再去参考:
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