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 6998275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:23:25+00:00 2026-05-27T20:23:25+00:00

I have a view (default from UIViewController), an image view above and tool bar

  • 0

I have a view (default from UIViewController), an image view above and tool bar at top.

       Toolbar
      ---------
     UIImageView
     -----------
       UIView

This is the basic structure. I want to animate the UIView and UIImageView only not toolbar, currently when I used the code

CATransition *animation = [CATransition animation];

[animation setDelegate:self];
[animation setType:kCATransitionPush];

if ([directionScrolled isEqualToString:@"1"]) {
    [animation setSubtype:kCATransitionFromRight];
}
else if([directionScrolled isEqualToString:@"2"]){
    [animation setSubtype:kCATransitionFromLeft];
}

[animation setDuration:0.20];
[animation setTimingFunction:
 [CAMediaTimingFunction functionWithName:
  kCAMediaTimingFunctionDefault]];


[[self.view layer] addAnimation:animation forKey:kCATransition]; 

the whole view animated,(along with toolbar). I want to exclude toolbar from animating.

  • 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-05-27T20:23:26+00:00Added an answer on May 27, 2026 at 8:23 pm

    You can rearrange your UI structure like this

          UIView ( this view is assigned to UIViewController )
           |
           |------Toolbar
           |------UIView ( lets take another UIView and name it as myView)
                   |-------UIImageView
      

    And then execute the same code of yours.
    Except,

     last line will be  [[self.myView layer] addAnimation:animation forKey:kCATransition];

    Be sure that

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UITabBarController where the default view controller is a UINavigationController . I
I have a DataTable. I'd like to sort its default view by a column
I have configured my default page to be say abcd.aspx and is under ~/View//abcd.aspx
I have a view user control that can post form. This control can be
I have a custom UIViewController and a corresponding view in a nib file. The
I have a Tab Bar app set up where the user selects their default
I have a MVC3 application, based on default layout from VS 2010, which I
I have one view controller in which I have added UIScrollView & UIImageView programatically.
I have a pretty simple UIViewController. It's initialized with a view I've created in
I have created a custom myViewController class and it has the default view ,

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.