UIActionsheet in Ios8

烈酒焚心 提交于 2020-01-21 12:19:18

问题


I have implemented actionsheet in my project having deploy target ios7 and less actionsheet works fine.

UIActionsheet in Ios8 not working same as other version of Ios. How i make it working properly?

Thanks


回答1:


UIActionSheet is deprecated from iOS8, You should use UIAlertController. You have to choose the alert style: it could be an AlertView or a Sheet. Check here for Apple reference. See this for an example.



来源:https://stackoverflow.com/questions/26336252/uiactionsheet-in-ios8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!