ios6 - UISplitViewController does not recognize device rotation when covered by modal movie player -


[this posted on apple developer forums has not been answered, i'll try here.]

my application uses uisplitviewcontroller ipad master/detail views , runs on ios 6. split view controller root view controller window. detail view consists of uiwebview embedded in uinavigationcontroller. other elements in detail view toolbar , navigation bar offered navigation controller. when web view displaying page embedded youtube video, user can make video full screen. done uiwebview---i not responsible creating full-screen video player. in case matters, once video player placed in full-screen view, keywindow of uiapplication shared instance not main application window during video playback, instead instance of mpfullscreentransitionviewcontroller.

if user rotates device during full-screen playback, , ends playback, uisplitviewcontroller not place children. methods

splitviewcontroller:willhideviewcontroller:withbarbuttonitem:forpopovercontroller: 

and

splitviewcontroller:willshowviewcontroller:invalidatingbarbuttonitem: 

of delegate (in case, detail view controller) never called.

if device rotated landscape orientation while playing full-screen video, dismissing movie player results in presentation of detail view controller retains former bar button item draw master view controller in popover (although tapping button produces no action). master view controller should drawn, black region exists. swiping right in detail view controller slide out master view controller covers black region, still exists popover rather persistent view.

if device rotated portrait orientation while playing full-screen video, dismissing movie player results in presentation of detail view controller lacks bar button item draw master view controller in popover. detail view controller has correct width, , master view controller not visible, appearance of detail view expected except missing bar button item.

in both cases, manually rotating device after incorrect view appears restore proper application functionality. however, relying on user rotate (or double-rotate) device fix drawing problems unacceptable.

is there way ensure split view controller becomes aware of device rotations when of children have disappeared behind modal movie player?

the answer suggested user samuraizack on apple developer forums. in delegate uisplitviewcontroller, force relayout of split view controller in viewwillappear:

[self.splitviewcontroller.view setneedslayout]; [self.splitviewcontroller.view layoutifneeded]; 

the original response can viewed on apple developer forums.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -