0

My app uses UIViewAutoresizingMasks with a scrollview and fixed bottom view but whenever the controller is presented with a search field open previously, the view shows an incorrect frame and the scrollview overlaps. Overlapping views shown here

You can see above that the scrollview size is incorrect, which causes the overlap. It's strange that the issue only appears when a keyboard is present in the previous controller, and the autoresizing mask makes it very difficult to debug (the view frames are correct when NSLogging). There isn't much relevant code to help solve the issue but just know that I'm using scrollview resizing mask of UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight

MechEngineer
  • 1,399
  • 3
  • 16
  • 27
  • Are you using `UISearchController` with `UISplitviewController`? I noticed [a similar size problem](http://stackoverflow.com/questions/27990019/how-should-i-present-a-uisearchcontroller-using-a-uisplitview-adaptive-user-inte) that disappeared when `self.definesPresentationContext = YES;` –  Aug 24 '15 at 19:43
  • I'm not using splitviewcontroller for this one, but I tried presentation context and there was no change – MechEngineer Aug 24 '15 at 20:01
  • Is this on the iPhone 6? Wondering if the narrower width is 320 and the wider is 375? –  Aug 24 '15 at 20:10
  • It seems to occur on many of our office test devices, including 5S and 6. – MechEngineer Aug 24 '15 at 21:01
  • Can you post some code or share a sample project demonstrating the problem? Someone might be able to spot the source of the issue and get you a faster answer. –  Aug 24 '15 at 21:34
  • The problem is that I can't really determine where in the code there is an issue, but I'll try to update the question with some more points. – MechEngineer Aug 25 '15 at 21:00

0 Answers0