zoukankan      html  css  js  c++  java
  • 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;

    
    

            }

    
    
    
    
    

        }

    
        
    }
  • 相关阅读:
    php.ini常用设置
    php 登录时用户名与密码验证器
    php Array操作函数
    php 注册时输入信息验证器
    php从数组中随机抽取一些元素
    php 字符串操作函数
    php类的注册与自动加载
    php 跑龙套功能——页面跳转
    围棋界的后阿拉法狗时代——“云养狗”
    云养狗的启发——区块链的新应用可能性乱想
  • 原文地址:https://www.cnblogs.com/ceasar/p/5264292.html
Copyright © 2011-2022 走看看