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

before orientation

playing video on landscape orientation

youtube player

navigation bar being obscured status bar

enter image description here

what missing here :) ?


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -