{"id":4078,"date":"2014-03-30T07:27:26","date_gmt":"2014-03-30T07:27:26","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/ios-7-navigationcontroller-navigation-back-error-collection-of-common-programming-errors\/"},"modified":"2014-03-30T07:27:26","modified_gmt":"2014-03-30T07:27:26","slug":"ios-7-navigationcontroller-navigation-back-error-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/ios-7-navigationcontroller-navigation-back-error-collection-of-common-programming-errors\/","title":{"rendered":"iOS 7 navigationController navigation back error-Collection of common programming errors"},"content":{"rendered":"<p>so when i call a button function and that push a new view in the navigation.<\/p>\n<pre><code>[self.navigationController pushViewController:newviewcontroller animated:YES];\n<\/code><\/pre>\n<p>however, if i swipe the view back before it slide to the left. it will crash the app with the following message:<\/p>\n<blockquote>\n<p>nested pop animation can result in corrupted navigation bar<\/p>\n<p>Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.<\/p>\n<\/blockquote>\n<p>here is my code for connecting the gesture with the delegate.<\/p>\n<pre><code>-(void)viewDidAppear:(BOOL)animated{\n\n    if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@\"7\")) {self.navigationController.interactivePopGestureRecognizer.delegate = self;}\n}\n<\/code><\/pre>\n<p>apart from simply remove the line, how can i solve that issue? is that an iOS 7 bug?<\/p>\n<p>can i enable the gesture after the animation&#8217;s been loaded?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>so when i call a button function and that push a new view in the navigation. [self.navigationController pushViewController:newviewcontroller animated:YES]; however, if i swipe the view back before it slide to the left. it will crash the app with the following message: nested pop animation can result in corrupted navigation bar Finishing up a navigation transition [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4078","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4078"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4078\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}