自定义TabBarController报错 - Unbalanced calls to begin/end appearance transitions for <>

自定义了TabBarController 之后必须实现以下方法才能避免报错


-(void)viewWillAppear:(BOOL)animated
{
    [self.selectedViewController beginAppearanceTransition: YES animated: animated];
}


-(void) viewDidAppear:(BOOL)animated
{
    [self.selectedViewController endAppearanceTransition];
}


-(void) viewWillDisappear:(BOOL)animated
{
    [self.selectedViewController beginAppearanceTransition: NO animated: animated];
}


-(void) viewDidDisappear:(BOOL)animated
{
    [self.selectedViewController endAppearanceTransition];
}

 

自定义TabBarController报错 - Unbalanced calls to begin/end appearance transitions for <>,布布扣,bubuko.com

自定义TabBarController报错 - Unbalanced calls to begin/end appearance transitions for <>

上一篇:前端开发:面向对象与javascript中的面向对象实现(二)构造函数与原型


下一篇:Android -- Intent