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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:25:41+00:00 2026-05-31T05:25:41+00:00

I have a UIControl defined in which I have used the MonoTouch.CoreGraphics classes to

  • 0

I have a UIControl defined in which I have used the MonoTouch.CoreGraphics classes to draw some items in and have put the UIControl into a UIView through AddSubview. I’m trying to take the view and turn the whole thing to simulate something sort of like movement of the minute or second hand on a clock or a dial. I’m under the impression that I can do that with the Transform on the UIView.

The name of my UIView is container. I’ve tried:

    container.Transform.Rotate(-0.78f);

I have also tried:

    CGAffineTransform t = CGAffineTransform.MakeIdentity();
    t.Rotate(-0.78f);
    container.Transform = t;

I have also tried:

    CGAffineTransform t = CGAffineTransform.MakeRotation(-0.78f);
    container.Transform = t;

I have also tried this and other combinations of it:

    UIView.BeginAnimations("rotate");
    UIView.SetAnimationDuration(0.5);
    container.Transform.Rotate((float)Math.PI);
    UIView.CommitAnimations();

None of the above have had any impact on my display. It does not rotate or move in the slightest. All of the iOS related posts refer to CGAffineTransformRotate, but I can’t find a Mono exact match for that and am assuming that is the equivalent of what I am doing above. Is there some other way I should be trying to make my view rotate?

  • 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-31T05:25:43+00:00Added an answer on May 31, 2026 at 5:25 am

    You are on the right track. I have a large game under development and do this all over the place in my code. Here is the simplest example I can give you:

    using MonoTouch.CoreGraphics;
    
    float degrees = 15;
    UIView aView = new UIView(new RectangleF(10,10,10,10));
    aView.Transform = CGAffineTransform.MakeRotation(3.14159f * degrees / 180f);
    

    That’s it.

    The examples are sparse, especially the fact that the MakeRotation function is in radians (hence the use of pi to convert to degrees).

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

Sidebar

Related Questions

I have a UIControl (or UIView, doesn't matter which) and this is covered by
I have a UIControl type screen which has a fullscreen UIScrollView and UITextFields on
I have a UIControl subclass which follows the UIAccessibilityContainer informal protocol: it returns NO
I have the following class public class UIControl { public string FName{ get; set;
Have just started using Visual Studio Professional's built-in unit testing features, which as I
Have you used VS.NET Architect Edition's Application and System diagrams to start designing a
(iPhone SDK 3.x:) I have a UIControl subclass that creates a different number of
I have several instances of a UIControl class Foo being instantiated, one instance corresponding
I came across the following issue: I have a main simple page on which
I have created a XAML UserControl that is used to enter the current date

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.