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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:03:02+00:00 2026-06-15T14:03:02+00:00

I have some objects in a view that I want to move around their

  • 0

I have some objects in a view that I want to move around their own points on a screen. I want them to appear almost stationary, but with a slight circular motion (not rotation, the items will remain straight and level), kind of like a buoy bobbing up and down in the ocean with some horizontal movement as well.

My basic thought is to move the anchor point around the object. I only want a subtle effect, the objects won’t be moving around the whole screen. At most 10-20 points. They will be UIButtons still capable of being pressed. So far everything I’ve searched for results in rotation about a point, and not what I’m after.

  • 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-06-15T14:03:03+00:00Added an answer on June 15, 2026 at 2:03 pm

    You can use CAKeyframeAnimation to make your object follow a small circle or any other path that suits your needs. Here is how you create and use a CAKeyframeAnimation object.

    CAKeyframeAnimation *pathAnimation = [CAKeyframeAnimation animationWithKeyPath:@"position"];
    pathAnimation.calculationMode = kCAAnimationPaced;
    pathAnimation.fillMode = kCAFillModeForwards;
    pathAnimation.removedOnCompletion = NO;
    CGMutablePathRef * circle = CGPathCreateWithEllipseInRect(CGRectMake(/* the center of your object and the radius of your circle*/));
    pathAnimation.path = circle;
    CGPathRelease(circle);
    [buttonView.layer addAnimation:pathAnimation forKey:@"animatePath"];
    

    This should get you started. Please note you need to import QuartzCore framework in order for this to work.

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

Sidebar

Related Questions

Assume some domain and view objects (that have no common base class) public class
Let's say I have some model objects that resemble this: public class FooModel {
I have some classes that represent immutable objects (Quantity, Price, Probability). Is there some
I want to build an application with one main view that will be on-screen
I want to create a set of objects which inherit from some Android View
i have to set some objects like UILabel and UIImageView in my scroll view
I have some code that displays a checkmark as the auxiliary view of a
I currently have a map view that is populated with several objects following the
I have some objects which will be used in the same manor. This object
I'm working on a web application written on php. I have some objects (represented

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.