【发布时间】:2015-07-08 08:09:08
【问题描述】:
我有一个选择器视图,当用户从选择器视图中选择某个值时,我想将某些文本视图和标签隐藏在一起:
[label1] [----textview1----]
[label2] [----textview2----]
[label3] [----textview3----]
所以我想要的是:
if (picker value is equal to "someValue")
{
- hide label 2 and textview 2
- shift label 3 and text view 3 to be positioned below label 1 and textview1
}
我尝试了 this solution 更改优先级和 this solution ,但仍然没有运气。 我需要同时隐藏标签和文本视图。
【问题讨论】:
标签: ios objective-c autolayout uitextfield uilabel