码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2014-06-26 23:37:32      阅读:320      评论:0      收藏:0      [点我收藏+]

标签:style   class   blog   code   color   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 <>

标签:style   class   blog   code   color   for   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!