ios - Transparent status bar for OS-supplied view controllers -



ios - Transparent status bar for OS-supplied view controllers -

my app allows users import video , perform few other actions send email. when phone call standard code nowadays these view controllers (example below), result scrollable elements appear underneath status bar, hideous. own view controllers not suffer glitch. problem seems occur in ios 7 , 8.

i see many related questions, of them address dealing status bar in own view controllers, , i've done that. question dealing view controllers os.

any thought might doing (e.g. in storyboard) cause this? did forget or miss obvious step? it's ugly , distracting , prepare fantastic. don't see in other app.

uiimagepickercontroller *mediaui = [[uiimagepickercontroller alloc] init]; mediaui.sourcetype = uiimagepickercontrollersourcetypephotolibrary; // displays saved movies photographic camera roll album. mediaui.mediatypes = @[(__bridge nsstring *)kuttypemovie]; mediaui.allowsediting = yes; mediaui.delegate = self; //with or without this, glitch appears [self presentviewcontroller:mediaui animated:yes completion:nil];

here's looks like:

the solution find remove status bar. might possible via davidisdk's reply this question, did subclassing uiimagepicker (and few other classes) this:

@interface nostatusbarimagepickercontroller : uiimagepickercontroller @end @implementation nostatusbarimagepickercontroller - (bool)prefersstatusbarhidden { homecoming yes; } - (uiviewcontroller *)childviewcontrollerforstatusbarhidden { homecoming nil; } @end

ios uiviewcontroller uiimagepickercontroller statusbar

Comments

Popular posts from this blog

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -