Ios 使用主题预加载视图

Ios 使用主题预加载视图,ios,objective-c,uistoryboard,Ios,Objective C,Uistoryboard,目前,如果我使用预加载视图,它有默认的导航栏,没有主题,我在AppDelegate中使用UIAppearance应用它 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { UIStoryboard *sb = [UIStoryboard storyboardWithName:NSBundle.mainBundle.infoDictionary[@

目前,如果我使用预加载视图,它有默认的导航栏,没有主题,我在AppDelegate中使用UIAppearance应用它

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
        UIStoryboard *sb = [UIStoryboard storyboardWithName:NSBundle.mainBundle.infoDictionary[@"UIMainStoryboardFile"] bundle:NSBundle.mainBundle];
        InitialSlidingViewController *vc = [sb instantiateViewControllerWithIdentifier:@"InitialSlidingViewController"];
        Person *person = [[self fetchedResultsController] objectAtIndexPath:indexPath];
              
        [vc view]; //Preloading view

        [self flipToViewController:vc fromItemAtIndexPath:indexPath withCompletion:NULL];
因此,在转换过程中,我看到默认的导航栏:

当转换完成时:


如何修复它?要在转换中查看主题视图?

您可能需要像这样隐藏导航栏:

[self.navigationController setNavigationBarHidden:YES animated:NO];

解决方法是使导航栏的着色颜色与主题中的相同。
如果有人有更好的解决方案,请张贴在这里。

没有,很遗憾,这不适合我。