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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:52:31+00:00 2026-05-24T23:52:31+00:00

I’m doing a project which involves Core Animation and AV Foundation. I want to

  • 0

I’m doing a project which involves Core Animation and AV Foundation. I want to use Core Animation to render some effects, then export it to video file via AV Foundation. The animation effect I want to achieve is replaying end-user signing his/her signature on the iPad.

What I’ve achieved so far:
– With referring GLPainter sample from Apple, I’m able to record the strokes of user signature, each individual stroke is composed of a number of touch points (CGPoint) which have been recorded in touchBegin/touchMoved/touchEnd method of my custom UIView.
– Driven by a repeatable NSTimer, I’m able to re-draw it on my custom UIView. Mainly it’s a repeating process of drawing line from one point to the next.

What I’m trying to do:
implement the signature re-drawing with Core Animation technology, then later on, embedded the core animation code with Av Foundation composition code to render the final output.

What concerns me now:

  • Knowing nothing about Core Animation, I’ve been learning it in the last few days. However, the tutorials/books I’ve read only tells me how to make implicit animation by altering CALayer’s properties, or make CAKeyframeAnimation. But my animation is sort of drawing something on the layer’s canvas progressively instead of moving something. So, how to do this in Core Animation?

What I’m doing now: is quite similar to what I did with Quartz2D, I use a NSTimer to repeatedly set my CALayer object needsDisplay, which in turn invokes its delegate’s implementation of drawLayer:inContext method, where I write fairly the same code as I wrote in UIView’s drawRect.

Well, I did kind of animation, without any CAAnimation involved. I’m just feeling weird, feeling I’m doing it wrong. I haven’t proceeded to the combining Core Animation with AV Foundation part, but I doubt my heck won’t get through.

I did honest search in SO I swear but found nothing related. My experience in Quartz2D and Core Animation is quite limited I have to say, so, really appreciate if someone could give me some hints, thank you!

  • 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-24T23:52:31+00:00Added an answer on May 24, 2026 at 11:52 pm

    What you want to do is to sync your drawing to the refresh rate of the screen. A NSTimer is not particularly good at this. The class you are looking for is CADisplayLink. Get access to it like this:

    link = [[UIScreen mainScreen] 
                 displayLinkWithTarget:self
                              selector:@selector(shouldUpdateDisplayLink:)];
    

    Set needs display in the shouldUpdateDisplayLink: callback. Retain the display link to ensure it stays around, and optionally set a lower refresh rate, perhaps to match the media playback.

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

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I want use html5's new tag to play a wav file (currently only supported
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from

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.