Note that there are some explanatory texts on larger screens.

plurals
  1. PONeed assistance regarding transitionFromView:toView:duration:options:completion:
    primarykey
    data
    text
    <p>Regarding <a href="http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIView_Class/UIView/UIView.html" rel="nofollow">transitionFromView:toView:duration:options:completion:</a> Apple doc says this in last few lines:</p> <blockquote> <p>This method modifies the views in their view hierarchy only. It does not modify your application’s view controllers in any way. For example, if you use this method to change the root view displayed by a view controller, it is your responsibility to update the view controller appropriately to handle the change.</p> </blockquote> <p>If a ViewController has 2 full screen size views display one at a time then no issues:</p> <p>[transitionFromView:self.view toView:self.view2...</p> <p>but what this means <strong>it is your responsibility to update the view controller appropriately to handle the change</strong>?</p> <p>if I do this:</p> <pre><code>secondViewController *sVc = [[secondViewController alloc]init]; [transitionFromView:self.view toView:sVc.view... </code></pre> <p>how its my <strong>responsibility to update the view controller appropriately to handle the change</strong>? or how to update ViewController?</p> <p><strong>UPDATE</strong></p> <p>I created a single view projec, add secondVC then in firstVC on button tap i did this:</p> <pre><code>self.svc = [[secondVC alloc]init]; [UIView transitionFromView:self.view toView:self.svc.view duration:1.0 options:UIViewAnimationOptionTransitionFlipFromLeft completion:^(BOOL finished) {}]; </code></pre> <p>... secondVC viewDidLoad is working its nslog is working.</p> <p>Then how to handle updating of viewcontroller? </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload