Don't want to see the classmate, straight down the bottom to see ....
These days the development of the program has encountered such a problem.
All of a sudden the program running in iOS7 has no animation effect.
The system comes with a push pop and the like is also completely no animation effect, as if the view directly add up the same.
The egg hurts ....
View the following code:
I don't know how to do it at all.
What to do..
Baidu Google ...
Keyword: iOS7 animation effect disappears
The following interface appears ...
What the hell is this?
Change Google.
Google is still more reliable than Baidu, but points in to find. It's just like me. The problems raised by these phenomena, but the solution, where, where are you?
Is my keyword wrong?
Continue to change keywords ... : iOS7 Pushviewcontroller Animation disappears
One by one views, eh, found a useful thing.
It was found that the problem could occur under the modal. says it's possible to turn Keywindow's rootviewcontroller into empty.
Smart code verification.
Found a problem. When the alert time pops up, it's possible to turn Keywindow into empty.
How to solve ...
Continue searching ...
Also found: Address: http://blog.woodbunny.com/post-126.html
In general [UIApplication Sharedapplication].keywindow.rootviewcontroller is initialized in Appdelegate, and the entire application is not changed during the run.
So in many places need to use the Presentmodelviewcontroller method, with this rootviewcontroller is very convenient, because it is equivalent to a global variable, no need to apply, release.
However, I found in the use of the Rootviewcontroller was changed to nil case.
The analysis found that when Uialertview called the Show method, Rootviewcontroller would be changed to nil, and then changed back when it dismiss. And I need the user to click on the Alertview button and then do Presentmodelviewcontroller operation.
Workaround:
Do not use the Alertview delegate in the
-(void) Alertview:clickedbuttonatindex:
Method
Instead, use:
-(void) Alertview:diddismisswithbuttonatindex:
Method!
Follow this Daniel's method to change.
Tears of blood ... Change and change
After the change, the mood is comfortable, there should be no problem.
OK, run the app.
Bullet box: Normal.
Ha ha haha
All right...
But, after a few more clicks, this happened again. By..
Keep looking for reasons.
Thought it was still the keywindow problem. Always look for the reason in this direction early.
2 days passed. In addition to knowing the knowledge of monitoring Keywindow changes, nothing ...
Just in time to give up, think of Google Chinese to google problems ...
I'm grass.
I'm grass.
Don't say Anything:
Click to enter:
A word. On this one sentence ....
Feel excited, follow this to modify.
Run the app, normal.
Excited, disturbed, continued to test.
Normal, excited
Continue the test.
Normal.
My grass, this moment of the mood is a blast.
At the end of the work time still wrote the above text ...
Follow-up finishing ....
First summarize the causes of these problems
: Personal understanding, if there is a mistake to welcome correct.
is when an animation has not completely finished, you remove its parent view.
Solution: A lot of code changes are unrealistic, only the next time the new project to pay attention to these issues. The simplest way. Enter this page time to call this line of code
[UIView Setanimationsenabled:yes];
Go home and find a daughter-in-law.
haha haha
iOS7 push pop animation suddenly disappears solution