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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:07:22+00:00 2026-06-13T16:07:22+00:00

I insert an UIActivityIndicator on my loading screen. When I changed the color to

  • 0

I insert an UIActivityIndicator on my loading screen.
When I changed the color to black color it all work fine on devices with iOS 6.0 version however its crash on devices with older versions.
here is my code:

indicator = [[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(110, 275, 30, 30)];
[indicator setColor:[UIColor blackColor]];//in this line i get crash.
[indicator startAnimating];
[self addSubview:indicator];

can someone tell me how can i fix this issue?

Thanks a lot,

Elad.

  • 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-13T16:07:23+00:00Added an answer on June 13, 2026 at 4:07 pm

    UIActivityIndicatorView only supports changing the color on iOS 5.0 and above.

    You can test whether the UIActivityIndicatorView supports changing the color using respondsToSelector:.

    indicator = [[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(110, 275, 30, 30)];
    
    // Check if indicator supports changing the color
    if ([indicator respondsToSelector:@selector(setColor:)]) {
        [indicator setColor:[UIColor blackColor]];
    }
    
    [indicator startAnimating];  
    [self addSubview:indicator];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

INSERT INTO pantscolor_t (procode, color, pic) VALUES ('74251', 'Black', '511black.jpg'), ('74251', 'OD Green', '511odgreen.jpg'),
INSERT INTO files (fileUID, filename) WITH fileUIDS(fileUID) AS ( VALUES(1) UNION ALL SELECT fileUID+1
insert ignore table ( field2 , name) Values ( 22 , 'value3'); its adding
To insert a row or column is generally easy with vba. However, do it
INSERT INTO example_table(`id`,`name`) VALUES (MAX(id)+1,`superman`) ; The above query doesn't work, what could be
INSERT INTO [Temp].[dbo].[Student] ([Fname], [Lname], [Gender]) VALUES (N'Aname', N'Alname', N'Male') GO This codes workes
INSERT INTO options (owner, name, value, modified) SELECT owner, name, value, modified, @draft:=draft FROM
INSERT INTO `ree`.`media` (`CREATEDATE`, `FILETYPE`, `MIMETYPE`, `MLSNUMBER`, `MODIFYDATE`, `POSITION`, `URL`) VALUES ('2011-12-27T15:00:16', 'PRIMARY PHOTO',
INSERT INTO orders_total SET `title`='Discount Coupon:', `text` = '-$40.00', `value` = '40.00' WHERE `orders_id`
INSERT INTO table_a (col_tinyint, col_varchar) SELECT 0, distinct(col_other_varchar) COLLATE utf8_bin FROM table_b I want

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.