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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:37:01+00:00 2026-06-13T07:37:01+00:00

I found example in this post for NSAttributedString. My question is – are there

  • 0

I found example in this post for NSAttributedString. My question is – are there any hints, how to use it for UIRefreshControl class?

From the post above:

NSMutableAttributedString * string = [[NSMutableAttributedString alloc] initWithString:@"firstsecondthird"];
[string addAttribute:NSForegroundColorAttributeName value:[UIColor redColor] range:NSMakeRange(0,5)];
[string addAttribute:NSForegroundColorAttributeName value:[UIColor greenColor] range:NSMakeRange(5,6)];
[string addAttribute:NSForegroundColorAttributeName value:[UIColor blueColor] range:NSMakeRange(11,5)];

Are the attributes called by the UIRefreshControl automatically?

EDIT:

I know how to set it, I want to know whether it serves any other purpose then “just” formatted label – is the UIRefresherControl able to display TWO strings? One before it has been pulled and one after it has been pulled? That’s what I thought at first when I saw I can’t put in “ordinary” string.

  • 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-13T07:37:02+00:00Added an answer on June 13, 2026 at 7:37 am

    Well, seeing as how UIRefreshControl has an attributedTitle property that takes an NSAttributedString, and seeing as how NSMutableAttributedString is a subclass of NSAttributedString, you would do:

    [myRefreshControl setAttributedTitle:string];
    

    is the UIRefresherControl able to display TWO strings?

    No. But you can try putting in an attributed string with multiple lines, or perhaps different paragraph styles (so one part could be left aligned, and another right aligned, for example).

    One before it has been pulled and one after it has been pulled?

    No. It is up to you to change the attributed title of the refreshControl according to your own application’s logic.

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

Sidebar

Related Questions

I found this example PHP source code at HTTP POST from PHP, without cURL
In this post i found INotifyPropertyChanged and i check it's example but I notice
I found simple example: class Post extends LongKeyedMapper[Post] with IdPK { def getSingleton =
I am trying to work with the class found in this post but it
EDIT: Read answer number 1 from Tim Schmelter and then use this question for
like in this post here by exemple I have found this blog but in
I found this example and used it How do you resize a Bitmap under
I found this example in the App Engine documentation . 1 <% 2 UserService
In the YouTube API docs I found this example : https://gdata.youtube.com/feeds/api/videos?q=surfing&max-results=10&fields=entry[yt:statistics/@viewCount>1000000] Which, of course,
While learning Rails, I found this example in the Sam Ruby's book: app/controllers/line_items_controller.rb def

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.