I'm playing with iOS7
now, find that my view bounds became full screen
eg. before 320*460
now 320*480
with 20px
status bar over my view,
I know iOS7
starts to support full screen layout, and has a
self.edgesForExtendedLayout = UIRectEdgeNone;
to set, but this line seems work only when the navigation bar is shown.
I can't upload screenshots. In iOS6
view seems normal, and 320*460
,
in iOS7
it's 320*480
, status bar covers view contents.
If I use a navigation bar and set self.edgesForExtendedLayout = UIRectEdgeNone;
view frame became 320*416
, leaves 20
for status bar and 44
for nav bar, but my app is a custom top bar, not using navigation bar here.
If I change the frame of window, it moves down by 20 px
, but status bar seems clipped and a black 320*20
bar is shown,
Any method to make both iOS6
and iOS7
happy?