Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
原來手腳太快也是會有問題的,
在使用navigation時,要注意push的間隔,
如果在很短的時間連續push就會發生上述錯誤,
這時候記得延遲一下就可以解決這問題的。
可以用這個來解決:
// 在原先要push的地方加上,取代原先的push [self performSelector:@selector(showView) withObject:nil afterDelay:0.7]; // Push View - (void)showView{ UIViewController *viewController = [[UIViewController alloc] initWithNibName:@"UIViewController" bundle:nil]; [self.navigationController pushViewController:viewController animated:YES]; }參考文件:
http://www.cocoachina.com/bbs/read.php?tid=110206
沒有留言:
張貼留言