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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:45:41+00:00 2026-06-17T07:45:41+00:00

I tried to set the property as atomic but it doesn’t seems to work

  • 0

I tried to set the property as atomic but it doesn’t seems to work anyway. Here’s the code. It move a label displaying the song name being played. And sometime it start jittering as if the label was supposed to be at two places at the same time. Any clue ? Some lock property maybe…

- (void)animateSongLabel
    {
        if (!self.player.rate) {

            [UIView animateWithDuration:.5 animations:^{

                self.songLabel.left = 25.f;
            }];
            return;
        }

        [UIView animateWithDuration:.25 delay:0. options:UIViewAnimationOptionCurveLinear animations:^{

             self.songLabel.left -= 15.f;

        } completion:^(BOOL finished) {

            if (self.songLabel.right < -10.f) {

                self.songLabel.left = 320.f;
            }
            [self animateSongLabel];
        }];
    }
  • 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-17T07:45:44+00:00Added an answer on June 17, 2026 at 7:45 am

    The rock-bottom simplest way to make text that just sits there and scrolls sideways is to display an animated UIImage or animated UIImageView – especially the former, because it animates forever, which is probably what you want. Generate the successive UIImage objects in code by drawing your text slightly offset each time, and hand them to animatedImageWithImages:duration:. Now wherever you show that image, it will be animating.

    Here’s some sample code to get you started (tweak to get precisely the effect you have in mind):

    NSString* s = @"Mister Dobbalena, Mister Bob Dobbalena";
    NSMutableArray* marr = [NSMutableArray array];
    UIFont* f = [UIFont fontWithName:@"Helvetica" size:12];
    float w = [s sizeWithFont:f].width;
    for (int offset = 0; offset < w; offset++) {
        UIGraphicsBeginImageContextWithOptions(self.iv.frame.size, NO, 0);
        [s drawAtPoint:CGPointMake(10-offset,20) withFont:f];
        [marr addObject: UIGraphicsGetImageFromCurrentImageContext()];
        UIGraphicsEndImageContext();
    }
    UIImage* im = [UIImage animatedImageWithImages:marr duration:20];
    self.iv.image = im;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried to set up my togglebutton properties layout using style.xml. Here's my code:
i got a prob when i tried to set webview property on uiviewcontroller. here
I tried to set visibleMapRect property of MKMapView object but result map rect is
I've tried to set up a Django model with a python property, like so:
Can I set the attributedText property of a UILabel object? I tried the below
I tried to set up the date_select in my HAML template for displaying just
I've tried to set the margin and border to 0,but still not working. <style
How to overwrite existing log file ??? I have tried to set attribute property
I tried to set the following SQL statement into Row Source property in Access
I tried to inherit interface, and make some of the automatically generated set property

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.