objective c - iOS change document picker status bar color not change -


my init viewcontroller show status bar tint color white color.

i need click alertertaction, presentviewcontroller uidocumentpickerviewcontroller status bar tint color changed the black color.

 ...    cloudaction = [uialertaction                actionwithtitle:@"from cloud"                style:uialertactionstyledefault                handler:^(uialertaction * action)                {                  [uinavigationbar appearance].tintcolor = [uicolor blackcolor];                      [self presentviewcontroller:cloudpicker animated:yes completion:nil];                 }];  ... 

and viewwillappear method set

 -(void) viewwillappear:(bool)animated{           [super viewwillappear:animated];                [uinavigationbar appearance].tintcolor = [uicolor whitecolor];        } 

it strange. when click alert, show cloud picker(uidocumentpickerviewcontroller) , stats tint color still whitecolor(on uidocumentpickerviewcontroller), click picker cancel, view controller changed black color, not white color.

have known how change color when click alert action , pick stats bar tint color changed(changed black color), , dismiss picker , view controller still white color @ status bar tint color.

thank much.

have tried changing uinavigationbar's titletextattributes?

uinavigationbar.appearance().titletextattributes = [nsforegroundcolorattributename: uicolor.black] 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -