如何在iOS 7中更改UIActionSheet的颜色? [英] How to change color of UIActionSheet in iOS 7?

查看:153
本文介绍了如何在iOS 7中更改UIActionSheet的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我可以使用自定义颜色在iOS 7中显示Actionsheet。几天以来我一直在寻找合适的答案。
任何帮助将不胜感激谢谢..

I wish I could use custom colors to display Actionsheet in iOS 7.I've been searching for proper answer since couple of days. Any help will be appreciated Thanks..

我正在使用UIActionsheet在其中显示PickerView

I'm using UIActionsheet to display PickerView in it

推荐答案

 UIActionSheet is not designed to be subclassed, nor should you add views to its hierarchy.
 If you need to present a sheet with more customization than provided by the
 UIActionSheet API, you can create your own.

根据apple doc 参考

As per apple doc Reference,

所以你必须使用一些自定义上课,

So you have to use some custom class for that,

显示此 cocoacontrols

这篇关于如何在iOS 7中更改UIActionSheet的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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