【发布时间】:2013-11-22 02:12:54
【问题描述】:
我有三个控制器第一,第二,第三。首先是navigationController的rootViewController。
在 SecondViewController 中,我有一个名为 SecondViewControllerDelegate 的协议,它有一个委托方法
@protocol SecondViewControllerDelegate <NSObject>
- (void)doneSucceed:(NSString *)msg;
@end
在FirstViewController中,我有一个按钮,当点击它时,执行以下操作
[self.navigationController pushViewController:_s animated:YES];
_s 表示 SecondViewController,其委托是 FirstViewController
在 doneSucceed 方法中执行以下操作
- (void)doneSucceed:(NSString *)msg
{
NSLog(@"%@", msg);
[self.navigationController popViewControllerAnimated:YES];
[self.navigationController pushViewController:_t animated:YES];
}
然后是错误
嵌套推送动画可能导致导航栏损坏 显示,有人告诉我为什么吗?谢了
【问题讨论】: