1

I have an app where I in the front scene have set an uimageview with top padding 0 to superview

For infor, I am resizing its height runtime using a height constraint.

The odd thing is the top logo now vertically goes 50% into the top statusbar (at least on iphone 4, portrait mode)

I am a bit at loss for wha possible reasons could be as I am still new to ios/swift/xcode

Tom
  • 3,587
  • 9
  • 69
  • 124
  • Does it work properly if you keep height static? – Vishnu gondlekar Jan 31 '16 at 17:58
  • can you post your code? – MoralCode Jan 31 '16 at 19:14
  • It worked before when resizing the frame. After using constrains only it ceased to work correctly. Not sure if padding issue. I will try experiment or post cose – Tom Feb 01 '16 at 12:00
  • It works setting a op margin for the uimageview to 10, but... well, otherwise it is standard code. It's no normally necessary to set a top margin to make sure stausbar is not covered- right? – Tom Feb 01 '16 at 12:14
  • I think this is relevant: https://stackoverflow.com/questions/18900428/ios-7-uitableview-shows-under-status-bar – Tom Feb 01 '16 at 12:28

0 Answers0