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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:57:30+00:00 2026-06-08T20:57:30+00:00

How to rotate an image in RubyMotion?

  • 0

How to rotate an image in RubyMotion?

  • 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-08T20:57:33+00:00Added an answer on June 8, 2026 at 8:57 pm

    If you’re looking for a raw Obj-C to RubyMotion conversion, we have it completed here.

    class RootController < UIViewController
    
      def viewDidLoad
        super
        xcode_image = UIImage.imageNamed("ilabs.png")
    
        @xcode_image_view1 = UIImageView.alloc.initWithImage(xcode_image)
    
        @xcode_image_view1.setFrame(CGRectMake(0,0,100,100))
    
        view.backgroundColor = UIColor.whiteColor
        view.addSubview(@xcode_image_view1)
      end
    
      def viewDidAppear paramAnimated
        super
    
        @xcode_image_view1.center = view.center
        UIView.beginAnimations("xcodeImageView1Animation", context:nil)
    
        UIView.setAnimationDuration(5)
    
        UIView.setAnimationDelegate(self)
    
        UIView.setAnimationDidStopSelector('clockwiseRotationDidStop:finished:context:')
    
        @xcode_image_view1.transform = CGAffineTransformMakeRotation(3.141592654 / 2)
    
        UIView.commitAnimations
    
      end
    
      def clockwiseRotationDidStop(paramAnimationID, finished:paramFinished, context:paramContext)
        p "Animation Finished now rotate back"
    
        UIView.beginAnimations("xcodeImageView1AnimationBack", context:nil)
    
        UIView.setAnimationDuration(5)
    
        @xcode_image_view1.transform = CGAffineTransformIdentity
    
        UIView.commitAnimations
      end
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to rotate image single round from it's center point but I
Friends, I am trying to rotate image using css3. On w3schools i found :
I need to rotate in image multiple times in 90 degrees I am using
I need to rotate an image when the user do a two finger twist
How to rotate an image with PHP, any degree, without having the filled space?
How can I rotate an image horizontally in WP7? It should seem like if
I am trying to rotate an image in OpenCV. I've used this code that
I am trying to rotate an image of wheel continuously. I was able to
What is the best way to rotate a image in asp.net I did use
I'm using the following code to rotate an image http://www.platinumball.net/blog/2010/01/31/iphone-uiimage-rotation-and-scaling/ that's one of the

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.