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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:15:22+00:00 2026-05-10T18:15:22+00:00

Does anyone have any examples or resources where i might find information on scrolling

  • 0

Does anyone have any examples or resources where i might find information on scrolling text which is too long to display in a button control? I’m thinking something along these lines.

  • Display as much text will fit within the current rect with a ‘…’ at the end to signify overflow.
  • Pause for say 1 second then slowly scroll the text to the right edge displaying the right part of the string.
  • Display as much text will fit within the current rect with a ‘…’ at the beginning to signify overflow.
  • Start the whole thing over in reverse.

Is there an easy way to do this using the ‘core’ or built in ‘animation’ frameworks on a certain mobile device?

[edit] Iwanted to add some more details as i think people are more focused on wether or not what i’m trying to accomplish is appropriate. The button is for the answers on a trivia game. It does not perform any speciffic UI function but is for displaying the answer. Apple themselves is doing this in their iQuiz trivia game on the iPod Nano and i think its a pretty elegant solution to answers that are longer than the width of my button.

In case its the ‘…’ that is the difficult part of this. Lets say i removed this requirement. Could i have the label for the button be full sized but clipped to the client rect of the button and use some animation methods to scroll it within the clipping rect? This would give me almost the same effect minus the ellipses.

  • 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. 2026-05-10T18:15:22+00:00Added an answer on May 10, 2026 at 6:15 pm

    Here’s an idea: instead of ellipses (…), use a gradient on each side, so the extra text fades away into the background color. Then you could do this with three CALayers: one for the text and two for fade effect.

    The fade masks would just be rectangles with a gradient that goes from transparent to the background color. They should be positioned above the text layer. The text would be drawn on the text layer, and then you just animate it sliding back and forth in the manner you describe. You can create a CGPath object describing the path and add it to a CAKeyframeAnimation object which you add to the text layer.

    As for whether you think this is ‘easy’ depends on how well you know Core Animation, but I think once you learn the API you’ll find this isn’t too bad and would be worth the trouble.

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

Sidebar

Related Questions

Does anyone have any examples on how to integrate a task scheduler in Bottle.
does anyone have any examples of using NSKeyedArchiver in monotouch? i just want to
Does anyone have any idea how to change the thickness of the text pointer
DOes anyone have any good information with regards to when to log, I was
Does anyone have any useful advice/links to information about working with mp3 files in
Does anyone have any good resources for developing Magento Modules that integrate with their
Does anyone know of any resources/examples for setting up an NP web plugin on
Does anyone have any examples of input validation changing the input border color to
Does anyone have any example on how to put a date time picker inside
IS this straightforward? Does any one have any good examples? All my google searches

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.