首页 > 移动平台 > 详细

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

时间:2014-06-26 23:37:52      阅读:406      评论:0      收藏:0      [点我收藏+]
自定义了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 <>

原文:http://www.cnblogs.com/hw140430/p/3807635.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!