Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9067023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:51:02+00:00 2026-06-16T16:51:02+00:00

I am writing a universal app using both UISplitViewController and a UISegmentedControl. Each controller

  • 0

I am writing a universal app using both UISplitViewController and a UISegmentedControl. Each controller in the UISegmentedControl allows editing. It appears that the editing state of the controllers must be re-established when a segment becomes the current segment. My problem is strange animations that result from [vc setEditing:YES animation:NO]. Can someone suggest how I might avoid this? Thank you.

- (void)segmentChanged:(UISegmentedControl *)sender
{ 
    UIViewController *vc = [self viewControllerForSegmentIndex:sender.selectedSegmentIndex];
    [self addChildViewController:vc];

    [self transitionFromViewController:self.currentViewController toViewController:vc duration:0.3 options:UIViewAnimationOptionTransitionCrossDissolve animations:^{
        [self.currentViewController.view removeFromSuperview];
        vc.view.frame = self.view.bounds;
        [self.view addSubview:vc.view];
        [vc setEditing:YES animated:NO];
    } completion:^(BOOL finished) {
        [vc didMoveToParentViewController:self];
        [self.currentViewController removeFromParentViewController];
        self.currentViewController = vc;
    }];
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T16:51:05+00:00Added an answer on June 16, 2026 at 4:51 pm

    To avoid inappropriate animations, I completed the preparation preparation for display of the Controller with setEditing and viewWillAppear.

       [self transitionFromViewController:self.currentViewController toViewController:vc duration:0.3 options:UIViewAnimationOptionTransitionCrossDissolve animations:^{
            [self.currentViewController.view removeFromSuperview];
            vc.view.frame = self.view.bounds;
            [self.view addSubview:vc.view];
            [vc setEditing:YES animated:NO];
            [vc viewWillAppear:NO]; 
        } completion:^(BOOL finished) {
            [vc didMoveToParentViewController:self];
            [self.currentViewController removeFromParentViewController];
            self.currentViewController = vc;
        }];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently writing a small python app that embeds cherrypy and django using py2app.
I'm writing a universal app that supports rotation. When app starts, it needs to
I am writing my first universal app, I have converted my nibs so that
I'm using Xcode 4.2 and in the process of writing a universal app. I
I am writing a universal app that will be used primarily at night. I
I'm writing a universal iOS app that a text entry component to it. When
Writing htaccess that allows me to remove index.php from the URL can confuse search
So I'm writing an app, and I want it to be universal. When I
I'm trying to figure out the best way to approach writing a universal app
I'm writing a tab-based universal app where one of the tabs takes considerably much

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.