自定义开/关图像iOS 7.0 UI开关 [英] Custom On/Off Image iOS 7.0 UI Switch

查看:80
本文介绍了自定义开/关图像iOS 7.0 UI开关的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS 7开关中,默认情况下不允许自定义开/关图像。虽然我仍然可以在界面生成器中设置它们但它不显示。

In iOS 7 switches don't allow custom on/off images by default. While I can still set them in the Interface Builder it doesn't show up.

https://developer.apple.com/library/ios/documentation/userexperience/conceptual/TransitionGuide/TransitionGuide.pdf

过渡指南仅指出它不再默认开启。据推测有一种方法可以改变它,所以我确实使用了我的图像。

The transition guide merely notes that it isn't on by default anymore. Presumably there is a way to change that so I do use the images I have.

推荐答案

你可以使用UIButton代替选定状态是指开启?

Can you use a UIButton instead, using the "selected" state to mean "on"?

这篇关于自定义开/关图像iOS 7.0 UI开关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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