Ios8中的UIActionsheet [英] UIActionsheet in Ios8

查看:116
本文介绍了Ios8中的UIActionsheet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的项目中实现了部署目标ios7的动作表,而且动作表工作正常。



Ios8中的UIActionsheet与其他版本的Ios不同。
我如何让它正常工作?



谢谢

解决方案

UIActionSheet在iOS8中已弃用,您应该使用UIAlertController。您必须选择警报样式:它可以是AlertView或Sheet。查看此处用于Apple参考。有关示例,请参见。 / p>

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

解决方案

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.

这篇关于Ios8中的UIActionsheet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆