iphone - IOS 8 - After orientation change, Navigation bar is obscured by the status bar -
i'm using swrevealviewcontroller , app locked on portrait orientation. on 1 of view controllers i'm launching youtube player using ytplayerview
. when displaying video switch orientation landscape programmatically so:
let value = uiinterfaceorientation.landscapeleft.rawvalue uidevice.currentdevice().setvalue(value, forkey: "orientation")
and when exiting video, portrait so:
let value = uiinterfaceorientation.portrait.rawvalue uidevice.currentdevice().setvalue(value, forkey: "orientation")
all works fine, introduce layout issue: navigation bar y not offsetted status bar, resulting status bar on top of navigation bar (see screens).
before orientation change
playing video on landscape orientation
navigation bar being obscured status bar
what missing here :) ?
Comments
Post a Comment