IPAD应用程序 - 分段控制,文本和标签 [英] IPAD application -segmented control,text and labels

查看:126
本文介绍了IPAD应用程序 - 分段控制,文本和标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发具有分段控制的小应用程序(是和否)。当我点击YES按钮时,它必须在视图中显示标签,当我点击NO按钮时,它必须在视图中显示文本字段。相同的视图,但当我单击否按钮时隐藏标签,当我单击是按钮时隐藏文本。你可以帮帮我吗?

解决方案

为不同数组中的文本和标签集合,然后根据分段控制索引隐藏特定数组中的所有对象。

i am developing small application which has Segmented control (YES and NO ). when i click on YES button, it has to show the labels in the view, when i click on NO button, it has to show the textfield in the views. same views,but hide the labels when i click NO button, hide the text when i click YES button. Can you please help me out?

解决方案

Make collection for text and labels in different arrays, and then hide all object in particular array based on segmentation control index.


这篇关于IPAD应用程序 - 分段控制,文本和标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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