uiview - iPad orientation notifications lost when transition for keyWindow -


i have animation done on keywindow of app.

[uiview beginanimations:kanimationlogin context:nil]; [uiview setanimationtransition:uiviewanimationtransitionflipfromleft forview:window_ cache:no]; [uiview setanimationcurve:uiviewanimationcurveeaseinout]; [uiview setanimationduration:1.0];  [window_ addsubview:splitviewcontroller_.view];  [uiview commitanimations];   [loginviewcontroller_.view removefromsuperview]; 

this works ok. then, if user logouts, transition reverse

[uiview beginanimations:kanimationlogout context:nil]; [uiview setanimationtransition:uiviewanimationtransitionflipfromright forview:window_ cache:no];     [uiview setanimationcurve:uiviewanimationcurveeaseinout]; [uiview setanimationduration:1.0];  [window_ addsubview:loginviewcontroller_.view];  [uiview commitanimations];  [splitviewcontroller_.view removefromsuperview]; 

here problem. now, loginviewcontroller_ , splitviewcontroller_ don't receive orientation notifications. why?

well, it's not great solution i've found way avoid problem. first of all, think problem comes because, while animation, both view controllers receives orientation notifications while, guess, adding , removing , window , raises problem. don't know if it's issue related view hierarchy (i guess it's correct i'm not sure) or not.

so, solution use put loginviewcontroller modalviewcontroller of splitviewcontroller, main controller, , use fliphorizontal transition while showing.

that solves problem.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -