ios - How to add a custom splash that dissapears after a custom time to allow for webview to load. Objective-c -
i'm using code show splash screen thing see black.
uistoryboard *storyboard = [uistoryboard storyboardwithname:@"mainstoryboard_ipad" bundle:nil]; splashviewcontroller *splash = [storyboard instantiateviewcontrollerwithidentifier:@"splash"]; splash.modaltransitionstyle = uimodaltransitionstylecrossdissolve; splash.modalpresentationstyle = uimodalpresentationfullscreen; [self.window addsubview:splash.view];
the view controller of splash screen loading because break points being called cant see view controller see black.
i think instead of adding splash.view
window
subview can use presentviewcontroller:animated:completion:
present splash view controller.
Comments
Post a Comment