ios - Allow landscape when UIWebView is playing video -



ios - Allow landscape when UIWebView is playing video -

i have uiviewcontroller uiwebview play video stream. whole app made portrait orientation only, i'd video play on landscape well.

the furthest implement method on appdelegate:

- (nsuinteger)application:(uiapplication *)application supportedinterfaceorientationsforwindow:(uiwindow *)window { homecoming [[window rootviewcontroller] ismemberofclass:[uiviewcontroller class]] ? uiinterfaceorientationmaskallbutupsidedown : // if current view player, allow landscape uiinterfaceorientationmaskportrait; // otherwise, portrait-only }

debugging top-most view controller, found out when video player appears fellow member of uiviewcontroller, , since app not display other vc of class (only subclasses), work.

it allow me rotate video (and video), great, when close video , app returns previous vc, navigation bar breaks: instead of having regular 64 pt height (20 status bar + 44 of navbar itself), status bar portion goes way , bar 44 pt tall only:

how can improve solution , create work perfectly?

ios orientation

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -