Monday, February 21, 2011

iphone - Can self.view transitions be animated?

The code below is from another SO post, and my question is can the transition from one view to the next using this method be animated, and if so how?

// origView is an instance variable/IBOutlet to your original view.
- (IBAction)switchToPhoneView:(id)sender {
  if (origView == nil)
    origView = self.view;
  self.view = phoneViewController.view;
}

- (IBAction)switchToOriginalView:(id)sender {
  self.view = origView;
}
From stackoverflow
  • It sounds like this Apple example might be what you're looking for.

    skantner : Perfect! Thank you!

0 comments:

Post a Comment