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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:15:40+00:00 2026-06-04T08:15:40+00:00

I am using the example by Erica Sadun for how to resize and rotate

  • 0

I am using the example by Erica Sadun for how to resize and rotate a UIImageView: https://github.com/erica/iphone-3.0-cookbook-/tree/master/C08-Gestures/14-Resize%20And%20Rotate

It is a wonderful example and exactly what I am wanting, but it falls short in one area. I cannot figure out how to pre-populate the transform property of the UIImageView so that I can save the state of the image and load it back into a view later, with the same position, scale and rotation.

Currently every time I add the UIImageView subclass it starts in the top left corner of the screen, but for the life of me, I cannot figure out how to pre-populate the transform property so it doesn’t so that.

When the image is created, we do:

originalSize = self.bounds.size;
originalTransform = CGAffineTransformIdentity;
touchBeginPoints = CFDictionaryCreateMutable(NULL, 0, NULL, NULL);// could this be the issue?

The subclass contains a lot of code, so I am not sure it should be reposted in its entirety.

Anyone used this before and could help?

  • 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-04T08:15:41+00:00Added an answer on June 4, 2026 at 8:15 am

    CGAffineTransformIdentity is a blank transform and won’t do anything.

    You need to set its transform to the transform you created.

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

Sidebar

Related Questions

using this example on dynamic list https://github.com/sandeepleo11/Dynamic-Select-Menus-in-Rails-3 I managed to get dynamic select in
Using Erica Sadun's scroll view example I created a project. I now have a
i have to create a program to login on facebook using example http://code.google.com/p/facebook-java-api/wiki/Examples but
I am using the code of Erica Sadun to Synchronous Downloads files. On the
I'm using example code from the answer on this Stack Overflow question (http://stackoverflow.com/questions/3240617/cfnetwork-and-bonjour-integration-for-iphone-to-mac-integration) which
Using the example code included in the man page for DateTime::Astro::Sunrise , I'm getting
Given the following example (using JUnit with Hamcrest matchers): Map<String, Class<? extends Serializable>> expected
I am using UICatalog example and trying to find whether it is possible to
Let's have an example: using (var someObject = new SomeObject()) { var someOtherObject =
I have looked at this example using php and GD to piecewise-render a spiral

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.