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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:43:01+00:00 2026-05-25T01:43:01+00:00

The key word is looping. I’m thinking I would have two functions for an

  • 0

The key word is looping. I’m thinking I would have two functions for an animation, such as a pulse. Is this the best way to make it loop?

-(void)animationPart1 {

    //Do first half of animation here, pulse in, the animation is 0.3 seconds long
    [NSTimer scheduledTimerWithTimeInterval:0.3 target:self selector:@selector(animationPart2) userInfo:nil repeats:NO];

}

-(void)animationPart2 {

    //Do second half of animation here, pulse out, the animation is 0.3 seconds long
    [NSTimer scheduledTimerWithTimeInterval:0.3 target:self selector:@selector(animationPart1) userInfo:nil repeats:NO];

}

I’m new to animations, so thanks for your help!

  • 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-25T01:43:02+00:00Added an answer on May 25, 2026 at 1:43 am

    If you use that approach, I think your should set “repeats” to “YES” and then you don’t have to create a recursive loop like that.

    Aside from that, without knowing precisely what you are attempting to animate, I do think there are a number of ways to approach animation such as Core Animation’s “CABasicAnimation” which has a number of different ways to animate various things (see examples):

    http://www.cimgf.com/2009/10/20/marching-ants-with-core-animation/

    If you are doing very heavy animation such as a game, then use Cocos2D, it rocks.

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

Sidebar

Related Questions

I have a HashMap where the key is a word and the value is
Definitions lists are a great way to mark up information where some key word
I understand the main function of the lock key word from MSDN lock Statement
It is advised to use override instead of new key word in C#. Why
I wish I could word this question better. Partly I just don't know the
I'm looping through an array, where I'm checking if the keydown (the key the
I got interested in this small example of an algorithm in Python for looping
First word of warning, I believe this is a stackoverflow rather than programmers question,
I'm not looking to keyword spam here, and this question is in the least
Language: asp This is sample of my code: str = www.example.com/gotobuy.aspx?id=1234 key_word = .obuy.

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.