回覆回應

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

回應

這個欄位的內容會保密,不會公開顯示。
  • 自動將網址與電子郵件位址轉變為連結。
  • 可使用的 HTML 標籤:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自動斷行和分段。
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.

更多關於格式選項的資訊

CAPTCHA
這條問題是測試你是否真正的人類使用者。
Image CAPTCHA
Enter the characters shown in the image.