回覆回應
pushViewController problem
Sometimes, I want to push some view controller into the navigation controller before the view is shown, then I called
[ self.navigationController pushViewController:[rootController autorelease] animated:NO]; // push root view controller
Where animated is set to NO to prevent animation. However, the above code doesn't work. When clicking back button, the view cannot return to previous view. After spending many hours, I found that it may be a bug in the SDK. If I set animated to YES, everything works fine:
[ self.navigationController pushViewController:[rootController autorelease] animated:YES]; // push root view controller
由 water 在 週三, 2008-08-20 11:47 發表
Tags:

最新回應
33 周 1 天前
38 周 3 天前
41 周 5 天前
42 周 5 天前
51 周 3 天前
51 周 3 天前
51 周 4 天前
51 周 6 天前
1 年 1 周前
1 年 1 周前