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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:43:41+00:00 2026-05-15T21:43:41+00:00

I have read that I can use the animator object in any UIView to

  • 0

I have read that I can use the animator object in any UIView to make an animation and this is included in Core Animation so I wrote

[[label animator] setFrame:someRect];

But it gave a warning that UILabel may not respond to -animator

Also I can find the method [label setWantsLayer:YES];

Would anyone help me please?

  • 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-15T21:43:41+00:00Added an answer on May 15, 2026 at 9:43 pm
    UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectZero];
    [self.containerView addSubview:myLabel];
    
    CGRect destination = CGRectMake(5, 5, 100, 100); //for instance
    
    [UIView beginAnimations:@"animationIdentifierString" context:nil];
    myLabel.frame = destination;
    [UIView setAnimationDuration:0.5f];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; //that's the default, actually, but set whatever you want there.
    [UIView commitAnimations];
    

    I just typed this right in here, so beware of typos. But this is the idea. Wrap changes to UIView subclasses in a call to [UIView beginAnimations: context:] and [UIView commitAnimations], set some configurations on the animations inside there, and boom, you’re animating.

    There are other ways to do it, but for my money this is the simplest.

    Way more detail in the UIView class reference at http://developer.apple.com/iphone/library/documentation/uikit/reference/UIView_Class/UIView/UIView.html

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

Sidebar

Related Questions

I have read that you can do it, but would this really improve performance
I have read that a using like this: using (myObject) { myObject.DoStuff(); } Can
I have read that I can use asynchronous call with polling especially when the
I have read in a several places (e.g. here ) that I can use
I read that I can use Python's Format Specification Mini-Language to have more control
I have read that I can suppress this noise by defining a form accept
I have read that I can use the gmail atom feed to get mails
I am using Liferay 6 . I have read that Liferay Hooks can be
I have a mediaplayer that can only read samba shared files. I would like
I have read and read related Q&A and can't believe that if my custom

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.