• childViewController 小计


    设置childViewcontroller   

    Unbalanced calls to begin/end appearance transitions for

    以上报错 需要添加 

    transitionFromViewController 方法完成与否的判断 跳转没有完成就往下一个childviewcontroller 跳转 会出现黑屏等问题。
    self.ganZhi_vc = [board instantiateViewControllerWithIdentifier:@"HDGanZhiViewController"];
        [self addChildViewController:self.ganZhi_vc];
        
        self.data_vc = [board instantiateViewControllerWithIdentifier:@"HDDataViewController"];
        [self addChildViewController:self.data_vc];
        
        self.map_vc = [board instantiateViewControllerWithIdentifier:@"HDMapViewController"];
        [self addChildViewController:self.map_vc];
        
        self.code_vc = [board instantiateViewControllerWithIdentifier:@"HDCodeViewController"];
        [self addChildViewController:self.code_vc];
        
        [self.view addSubview:self.root_vc.view];
        [self.root_vc didMoveToParentViewController:self];
        _currentViewController = self.root_vc;

    界面跳转

    -(void)changeViewControllerWith:(UIViewController *)temp
    {

    if (_transitioning) {

    
    

            return;

    
    

        }

    
    

        else

    
    

        {

    
    

            if (_currentViewController != temp) {

    
    

                [self transitionFromViewController:_currentViewController toViewController:temp duration:0 options:UIViewAnimationOptionTransitionCrossDissolve animations:nil completion:^(BOOL finished) {

    
    

                    _transitioning = NO;

    
    

                }];

    
    

                _currentViewController = temp;

    
    

            }

    
    
    
    
    

        }

    
        
    }
  • 相关阅读:
    Mybaits利用插件generator自动生成sql
    idea设置
    centos虚拟机的相关知识
    nginx部署
    apollo配置
    分布式报错解决方案
    搭建springconfigCenter遇到的坑
    idea中git配置
    SpringCloudDay1_概念
    03.2020 MB SD Connect C4 Software “set_SDconnect.bat” File Lost Error Solution
  • 原文地址:https://www.cnblogs.com/ceasar/p/5264292.html
Copyright © 2020-2023  润新知