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.
精彩评论