Now there is such a demand: A switch to B, B can also be switched to A. But in the successive switching process will produce a plurality of A and a plurality of B. Cause memory continues to grow.
Problem: How to destroy excess of A and B in excess of the switching process, or in the switching process is not repeated to generate new A and B.
Reply:
The reply was deleted administrator at 2013-10-29 08:49:33
Reply:
1) with Navigation A push B B pop A
2) the modal A present B B dimiss A
3) with a container viewController A addChild B A addChild C B.. Switching between C see their own definition of it.
I do not know not want the landlord Reply: push the recall release Reply: View it into two to create displays that do not use that hidden Reply: To solve this fucking asked to mention. . Since I write a control UiViewController stack controller. . . Code is as follows:
I think this is a temporary solution, but it can also be used with ~ ~ Reply:
I use the arc ~ ~ Reply:
If you can correctly use the ARC, you said there should not be a problem ARC is a program to provide automatic memory management functions at compile time. We have to follow when using one of its basic principles ARC is a basic principle: as long as an object is either a strong pointer reference, then it will not be destroyed. When the object is not referenced by any strong pointer, then it will be destroyed Reply:
Remember release
after pushI use the arc ~ ~
If you can correctly use the ARC, you said there should not be a problem ARC is a program to provide automatic memory management functions at compile time. We have to follow when using one of its basic principles ARC is a basic principle: as long as an object is either a strong pointer reference, then it will not be destroyed. When the object is not referenced by any strong pointer, then it will be destroyed
present time will produce a new UIViewController, while the original is still in the stack being UIViewController, because we can not operate on the stack, so if two UIViewController constantly present, it will cause memory continues to grow. Reply: Navigation bar ......... / / / / / / / / / / / / / / / / / / / / / / / / / Reply: Why two have been present. . After the present dismiss the right not to return to the previous Reply:
Why two have been present. . After the present dismiss that it is not returned before the
UIViewController needs to be pointed out that these two can be switched with each other. Reply:
Navigation can not be achieved with switching between two UIViewController it. . Reply:
Why two have been present. . After the present dismiss that it is not returned before the
UIViewController needs to be pointed out that these two can be switched with each other.
Switching to each other, then put a viewController as container, then add two childController, then transitionFromViewController: toViewController: duration: options: animations: completion: This method is not on it. . . Reply:
Why two have been present. . After the present dismiss that it is not returned before the
UIViewController needs to be pointed out that these two can be switched with each other.
Switching to each other, then put a viewController as container, then add two childController, then transitionFromViewController: toViewController: duration: options: animations: completion: This method is not on it. . .
+50 ~ Reply:
Why two have been present. . After the present dismiss that it is not returned before the
UIViewController needs to be pointed out that these two can be switched with each other.
Switching to each other, then put a viewController as container, then add two childController, then transitionFromViewController: toViewController: duration: options: animations: completion: This method is not on it. . .
+50 ~
Hey, but you can also customize a stack, ah, something good to maintain their own extensions Reply:
Why two have been present. . After the present dismiss that it is not returned before the
UIViewController needs to be pointed out that these two can be switched with each other.
Switching to each other, then put a viewController as container, then add two childController, then transitionFromViewController: toViewController: duration: options: animations: completion: This method is not on it. . .
No comments:
Post a Comment