开发者

Show/Hide views

I have added a UIView in IB (targetView) and have added 4 labels as subview to this. I have seen it in hierarchy as well.

I also have an outlet for this

@property (nonatomic, retain) IBOutlet UIView *targetView;

I want to show hide this container view (to actually show/hide the开发者_运维百科 4 labels inside it) I am writing

targetView.hidden = YES;

But for some reason, it is not working. Please help me.


More than likely you have not connected your IBOutlet to the UIView in interface builder.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜