Welcome to the Treehouse Community
Looking to learn something new?
Kieran Robinson9,411 Points
Hiding storyboard created views programmatically
I have a property "imageBar". It is a View that contains 6 imageViews, I want to animate the view to be hidden if there are no images in the imageViews. However, the line to simply hide the imageBar doesn't work, i am using
self.imageBar.hidden = YES;
within ViewDidLoad, but the imageBar is not hidden. ImageView was created in storyboard and i was wondering if it is even possible to edit storyboard created views programatically?
Thomas Nilsen14,957 Points
First, check that your "imageBar" outlet is properly connected. Second, I'd try and put the code where you set .hidden = YES in