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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:19:07+00:00 2026-05-21T10:19:07+00:00

I have an image which is rotating and what I want is that a

  • 0

I have an image which is rotating and what I want is that a second image to be stuck on it and it rotate just as the first. Please, how can I do this?

  • 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-21T10:19:08+00:00Added an answer on May 21, 2026 at 10:19 am

    I’m not at my computer so I can’t test this, but I think it should get you what you want.

    // assuming you already have your views
    // viewOne, viewTwo
    
    [viewOne addSubview:viewTwo]; // add viewTwo to viewOne
    
    // let's assume that you call this code here one time per second
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:1.0];
    [UIView setAnimationCurve:UIViewAnimationCurveLinear];
    
    // when this is 1.0, the image will rotate 360
    // ... when it is .5, it should rotate 180, etc...
    float rotationFactor = 0.1f;
    
    // viewTwo's rotationFactor will be added to view 1's in the transform below
    float rotationFactor2 = 0.1f;
    
    viewOne.transform = CGAffineTransformMakeRotation(M_PI_2 * rotationFactor);
    viewTwo.transform = CGAffineTransformMakeRotation(M_PI_2 * (rotationFactor + rotationFactor2);
    
    [UIView commitAnimations];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an UIImageView which I can rotate using CABasicAnimation . That works fine.
I have an image which is just made of one color ? (it could
I have found this script in Magento which is rotating images from a certain
I have a canvas which I draw an image onto. The image can be
I am developing an app, Which has feature that dragging and rotating the image
I have a UserControl which has a quadratic Image as a Child. This Image
HI, Is there a way by which I can rotate an image inside a
In my application I have one Image which can be rotated... The rotation part
I have a image which has an mouseover jquery function: $(document).ready(function ()) { mouseenter:
I have an image which is made up of 2 images, a sprite. 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.