ios - UIViewControllerContext initalFrameForViewController & finalFrameForViewController show 0 for all values -
I am implementing my own custom Is this going to work? Showing debugger: Additionally, the debugger is also showing the following warning. Does it contribute to error anyway? You should first know that there are about two types of custom changes: Full and non-fullscreen and those who are seeking the last frame for Set in cases where you modalPresentationStyle = UIModalPresentationCustom you can specify that the transition should be non-fullscreen, that is: What is that For more information see this presentation: Hope That it would be helpful. UIViewController transition and when I click on the debugger's frame To see the controller output, I get the
{{0, 0}, {0}} for both the initial and the final frames. I thought that this method on reference is considered to show the initial frame before the final fracture and infection before the final transition.
- (minus) Prarnbintraktiv Tronnsisn: (ID & lt; UIViewControllerContextTransitioning & gt;) transition Contaks {UIViewController * fromVC = [Transition Content View-View-Controller Foreki: UITransitionContextFromViewControllerKey]; UIViewController * toVC = [Transition Content Visual View Controller Foreiki: UITransitionContextToViewControllerKey]; CGRect initialToFrame = [transitionContext initialFrameForViewController: toVC]; CGRTT Last Topframe = [Transition Consult FinalForForvient Controller: Towisi]; Anselog (@ "initial Tofram:% @, final Tofram:% @", Ansstiingfromsigret (initial Tofram), Ansstiringfromsijiakt (final Tofrem)); }
initialToFrame: {{0,}, {0}}, final tofrem: {{0,}, {0}}
It is frustrating to present view controllers on different view controllers
toVC.vew are a non- There is absolutely no sense in the fullscreen transition.
modalPresentationStyle are not set or it is clearly
UIModalPresentationFullScreen (this is the default value) know UIKit That
toVC.view will cover the entire screen, so the
-finalFrameForViewController: toVC will return the correct frame: the main screen frame. using
toVC.view will be partially covered by < Code> FromVC.view (and the chicken CE
fromCV.view will be placed in the hierarchy); Where
toVC.view Your decision will be
fromVC.view , this is the reason that
-finalFrameForViewController: returns
CGRectZero .
CGRectZero is telling you: "Hey buddy
Comments
Post a Comment