I have a UIScrollview with dynamic views (Label, Imageview) inside it. I hide some views, but there is empty empty space. how to remove it?
I tried with the code below, but it does not work,
[self.view addConstraint:[NSLayoutConstraint constraintWithItem:myView attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:0]];
Layout file Like:
-View -ScrollView -UIImageView -UIButton -UIButton -UILable -UILable -UIButton -UILable -UILable
ios objective-c iphone
Sanjay Mangaroliya Aug 02 '17 at 8:05 2017-08-02 08:05
source share