iphone - UIActionSheet 按钮颜色问题

标签 iphone ios button uiactionsheet uicolor

我在做什么

我正在制作一个包含三个按钮的 Actionsheet 项目。

我的问题

当我按下按钮 1 时我想要它。当我按下按钮时它应该以橙色突出显示..

它应该只有在我按下按钮时才会改变

建议请..

最佳答案

正如 Evan Mulawski 在他的回答中所说 here :

Without using undocumented API's, there is no official way to change the button's color on a UIActionSheet. You may be able to customize this if you subclass the UIActionSheet control.

See this example: http://blog.corywiles.com/customizing-uiactionsheet-buttons

关于iphone - UIActionSheet 按钮颜色问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5377614/

相关文章:

ios - 如何在应用程序中获取 Twitter 和 Facebook 图标

iphone - 如何在iPhone中从ASIHTTPRequest调用soap方法?

ios - 使用 nsuserdefault 在 uitableviewcell 中保存图像状态

iphone - UITableView 更新时需要注意什么? (例如锁定它?)

iphone - 具有 Storyboard原型(prototype)的 UITableViewCell subview 的动态大小

ios - 如何在 iphone 中刷新 UITableView?

javascript - 使用 HTML 按钮将文本复制到剪贴板

javascript - 在工作流按钮 NetSuite 上触发 SuiteScript

iphone - 本地化 Nib 无法在 iPhone 项目中工作

iPhone 3.1 SDK 相机访问