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

  • SEARCH
  • Home
  • 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 8752689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:17:01+00:00 2026-06-13T13:17:01+00:00

I recently stumbled upon a problem where I have a view that can be

  • 0

I recently stumbled upon a problem where I have a view that can be rotated by the user. During the rotation it should, however, be 10% larger (scaled up).

I want that scaling to be animated but the rotation to be be visible immediately since I set it without animation in the gesture recognizer’s callback.

Question: Is it possible to update an CGAffineTransform‘s rotation without intercepting the scale being animated, or is there no way around creating a wrapping view that gets scaled instead?

  • 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-13T13:17:02+00:00Added an answer on June 13, 2026 at 1:17 pm

    Edit:

    I think a wrapper view for scaling would be the least error prone way.

    If you desperately want to avoid that, you could try to create the scaling animation manually with an NSTimer. Maybe if you query the current transform value first and then modify it instead of replacing it by an independently created one (for the rotation and the scale), it could work.

    I think an implicit UIView animation calculates all subsequent values in the beginning, so that would mess up your rotation.

    Another way to go would be to lock the rotation while the scaling occurs. The downside is, that scaling and rotation wouldn’t be simultaneously. Anyway you could create an iVar or property let’s say rotationLocked and do sth. like this:

    - (void)handlePan:(UIPanGestureRecognizer *)gr
    {
        if (gr.state == UIGestureRecognizerStateBegan)
        {
            self.rotationLocked = YES;
            [UIView animateWithDuration:.2 animations:^{
                [self scaleView];
            }completion:^{ self.rotationLocked = NO; };
        }
        if (gr.state == UIGestureRecognizerStateChanged)
        {
            if (!self.rotationLocked){
                // do the rotation
        }
        if (gr.state == UIGestureRecognizerStateEnded)
        {
            // do something else
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently stumbled upon a problem with selecting relationship details from a 1
A problem that I stumbled upon recently, and, even though I solved it, I
Recently I stumbled upon a problem that involves moving asp classic sites from a
I have recently stumbled upon an open source project that I would like to
I just recently stumbled upon the fact that Declarative Services in OSGi can set
Recently stumbled upon a stock video footage site http://www.pond5.com/stock-video-footage/1/*.html , and saw that they
I recently stumbled upon a cool feature in CVS where you can name revisions
I recently stumbled upon a jQuery plugin that was supposed to force IE to
I had recently stumbled upon a common problem in Git when creating branch groups:
Recently, I have stumbled upon the basic understanding about PKI work-in-action process. I have

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.