在UISegmentedControl中保持选择

编程入门 行业动态 更新时间:2024-10-25 04:21:23
本文介绍了在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中保持选择

本文发布于:2023-07-15 10:28:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1110667.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:UISegmentedControl

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!