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

The Archive Base Latest Questions

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

I was wondering how to add a scrolling menu to my app like tiny

  • 0

I was wondering how to add a scrolling menu to my app like tiny wings or angry birds. In tiny wings, the background moves from right to left and I was wondering how they accomplished that. Thanks in advance.

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

    Not familiar with either app (yes, a gaming Ludite), but if you make a view wider than the screen you can move it’s location/center/frame/transform/etc. to make it move, you can animate that action too.

    if you make the first 320 points (we measure in points, not pixels) of the width of the view equal to the last 320 points, you can jump the view’s location when it reaches the end and keep going for ever.


    Edit (example code):

    - (void)animateBannerLocation {
      UIView *view = _bannerView; // _bannerView.frame = CGRectMake(0,0,1000 ish,40);
      CGRect startRect = view.frame;
      CGRect destinationRect = view.frame;
      // assuming superview is width of screen
      destinationRect.origin.x = CGRectGetWidth(view.frame) - CGRectGetWidth(view.superview.frame);
      [UIView animateWithDuration:6.0 // time in seconds
                       animations:^(void) {
                         view.frame = destinationRect;
                       } completion:^(BOOL finished) {
                         /** if you want it to scroll forever:
                         view.frame = startRect;
                         [self animateBannerLocation];
                          **/
                       }];
    }
    

    untested


    Edit #2
    also untested

    - (void)viewDidLoad {
      [super viewDidLoad];
      UIImageView *_bannerView; /// - an ivar
      // not the best way to load an image you only use in one place:
      UIImage *image = [UIImage imageNamed:@"SomeBigBannerImage1000x40ish.png"];
      _bannerView = [[UIImageView alloc] initWithImage:image];
      [self.view addSubview:_bannerView];
    }
    

    Edit #3

    Reviewed your code. You should pay attention to the compiler warnings.

    - (void)animateBannerLocation {
      UIView *view = _bannerView; // _bannerView.frame = CGRectMake(0,0,1000 ish,40);
      CGRect startRect = view.frame;
      CGRect destinationRect = view.frame;
      // assuming superview is width of screen
      destinationRect.origin.x = - (CGRectGetWidth(view.frame) - CGRectGetWidth(view.superview.frame));
      [UIView animateWithDuration:6.0 
                            delay:0.0 
                          options:UIViewAnimationOptionCurveLinear
                       animations:^(void) {
                         view.frame = destinationRect;
                       } completion:^(BOOL finished) {
                         view.frame = startRect;
                         if (stopAnimation == NO)
                           [self animateBannerLocation];
                       }];
    
    }
    
    
    - (void)viewDidAppear:(BOOL)animated {
      [super viewDidAppear:animated];
      [self animateBannerLocation];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm currently wondering how to add more localizations to my PhoneGap App on the
i was wondering how could i add .customString to PictureBox object. Something like: PictureBox
I was wondering if there was a way to add an app link to
I'd like to add a gesture to my app so when the user swipes
Just wondering if it's possible to add a button like the Clear History, Clear
I am wondering if it is considered reasonable to add app code inside of
I was wondering how to add our own custom icon to the web page
I'm wondering how to add onblur=hcb.watermark.blur(event) onfocus=hcb.watermark.focus(event) style=color: rgb(136, 136, 136); to the following
I have only used MapRoute and slightly wondering where Routes.Add is used and on
Im wondering how i could add a success or fail message to return at

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.