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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -