ios - Can I set a UIView hidden is true in the viewDidLoad()? -
i have designed uiview
in storyboard , parent view tableview. want set hidden or unhidden depend on decision.how can do? view tag? or other method? put code:
uiview *myview=[[uiview alloc] viewwithtag:99]; myview.hidden=true;
but not work!
give iboutlet uiview in storyboard
@property(nonatomic, weak)iboutlet uiview *subview;
in viewdidload or viewwillappear
put line
subview.hidden=yes;
Comments
Post a Comment