在UISegmentedControl中保持选择 [英] maintaining selection in UISegmentedControl

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

问题描述

我可以保持UISegmentViewControl段的选定状态吗?即即使用户选择了另一个细分,也可以保持细分显示为选中状态??我似乎在任何地方都找不到能做到这一点的东西!

Can i maintain the selected state of UISegmentViewControl segments?? i.e can keep a segment appear selected even if the user selects another segment?? I dont seem to find anything that does this anywhere!!

推荐答案

这不可能是开箱即用的.(请参阅如何启用多个细分选择要选择的UISegmentedControl?.)

This isn't possible out of the box. (See How can I enable multiple segments of a UISegmentedControl to be selected?.)

您可以尝试使用此代码提供类似的功能.

You could try something like this code to provide similar functionality.

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

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