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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T16:28:36+00:00 2026-05-14T16:28:36+00:00

I am banging my head on the wall here due to this problem: When

  • 0

I am banging my head on the wall here due to this problem:

When I create a UIImageView this view has a certain orientation and size. Lets call this state “A”.

This view responds to taps. It can be dragged around the screen.

At some point in the code I apply a CGAffineTransform to the view. Does not matter if the affine is a scale, a rotation, a translation or a combination of all. Does not matter also if the transform is absolute or relative. Not to mention the device can change its orientation and the view is autorotated to the correct orientation (that we can cay is a kind of rotation or transformation applied to the view).

The problem is: the moment I touch that object or try to animate its transparency or any other parameter, it “remembers” the state “A” and does all animations from that state, not from current state. If I simply touch the view, it returns instantly to state “A”. The code is not doing it by itself. It is pretty annoying. How to I make a view assume its current state of transformations as the reset or initial state? In other words, how do I make a view forget its past transformations or states?

The only way I know is recreating the view, but this is a ridiculous way of doing this.

Is there any way to make this work as I described?

thanks

  • 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-14T16:28:37+00:00Added an answer on May 14, 2026 at 4:28 pm

    Afaik, all of the SDK animations automatically create a copy, perform the animation on the copy while hiding the original. In your code you’ll have a getState line that starts this and creates the pointer to the animation object. To make it permanent at the end of your animation routine set the original objects view to the animation view.

    Iirc it something like this, but I don’t have my code samples in front of me:

    myOriginalObject.view = myMnimationObject.view
    

    Obviously do this before you release your animations but after you’re done with the transforms.

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

Sidebar

Related Questions

I've been banging my head against for wall for a while with this one.
I've been banging my head against a wall for about an hour on this:
So I've been banging my head against the proverbial wall for a few hours
I have been banging my head on this one all day. The C++ project
Here's a quick question I've been banging my head against today. I'm trying to
This is to all the C# gurus. I have been banging my head on
This is a problem I'm sure is easy to fix, but I've been banging
I've been banging my head against the wall with a really annoying issue. I
Here is the code I have came up for this problem. $link = mysql_connect($host,
So I am really confused on how to write this proc. Here is what

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.