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

The Archive Base Latest Questions

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

Is it possible to smoothly animate a changed width property of CGContextFillRect over say

  • 0

Is it possible to smoothly animate a changed width property of CGContextFillRect over say 5 seconds?

CGContextFillRect(context, CGRectMake(x, y, width, height));

I’m trying to write a method for an iphone app that basically takes a time value and animates the change of CGContextFillRect width from the initial value to the final value smoothly. I need steering in the right direction of research.

If not CGContextFillRect then perhaps there is some other rectangle could be animated like a CALayer? hmmm

  • 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-15T14:28:41+00:00Added an answer on May 15, 2026 at 2:28 pm

    A CALayer can be animated trivially in this way. If you want a smooth animation of the CGFillRect you’d have to use a timer or a CADisplayLink or some other timed system.

    To do this with a CALayer look into CABasicAnimation, you can tell it to do a cumulative animation, repeated however many times you want.

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

Sidebar

Related Questions

Is it possible to smoothly animate the width of a table. Ten percent per
I've been trying to smoothly animate some Windows Form location but I'm having some
I'm trying to implement a way to animate (translate, fade) controls around (more than
is it possible to smoothly fadein a jquery modal dialog? (can't find anything in
Is it possible to animate ListView items in C# ? The purpose is that
Possible Duplicate: Equation-driven smoothly shaded concentric shapes How could I plot a symmetrical heart
What is the best possible way to smoothly fade in/out a sound with SFML
I'm trying to figure out how to animate the change from Visibile to Hidden
Is it possible to animate the change of a UIProgressView such that the display
Is it possible to open div smoothly to full size of its content? If:

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.