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

时间:2014-06-26 23:37:32   收藏:0   阅读:320
自定义了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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!