iphone - pushViewController not working when animated:NO -


i'm not sure broke in app, when try change view controller, won't work when animated:no. when animated:yes, works displays error:

unbalanced calls begin/end appearance transitions 

here's (fairly simple) code calling it:

jviewerviewcontroller *viewer = [[jviewerviewcontroller alloc] init];  [self.navigationcontroller pushviewcontroller:viewer animated:no]; 

i did nslog on navigation controller, viewer visible view controller. interestingly, counts viewer visible view controller.

this occurs when try , display new viewcontroller before current view controller finished displaying. can reproduce navigating in viewwillappear.

basically trying push 2 view controllers onto stack @ same time. push 1 @ time on stack , check on exit current view whether there queued detail views need displaying.

hope helps you.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -