Reputation: 522
I'm implementing a gallery with a UIView that contains UIScrollViews and UIButtons.
When the orientation is portrait, there's no problem, but when de orientation changes to landscape mode, the 300 pixels from bottom stops getting sensibility.
Any ideas?
Upvotes: 1
Views: 411
Reputation: 5955
i think you may set the static frame value. if so, set it as dynamic. eg:
your_View=[UIVIew alloc]initWithFrame:[[UIScreen mainScreen] bounds]];
or
your_view.frame = self.view.bounds;
Upvotes: 1
Reputation: 11537
If you attach a tap gesture to a view the view needs to resize itself according to the superview new frame. You need to correctly set autoResizingMask
property to your view the for this.
Upvotes: 1