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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:24:39+00:00 2026-06-04T04:24:39+00:00

I would like to add a NSProgressIndicator . I have a button which enable

  • 0

I would like to add a NSProgressIndicator.
I have a button which enable a timer, then after the delay, a method is called.

I would like to start the spinning animation when I press the button, and I would like to stop animation when the method ends.

So, in my .h I added

NSProgressIndicator * ConnectingProgress;

Then in my .m in my button action I added

 [ConnectingProgress startAnimation:sender];

And for last at the end of my method I added

[ConnectingProgress stopAnimation:sender];

The issues:

  1. the “sender” is not recognized in my method.
  2. nothing work, also the startAnimation…

What I did wrong and How can I passtrhough?

  • 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-04T04:24:40+00:00Added an answer on June 4, 2026 at 4:24 am

    The compiler is saying you that you don’t have any local variable sender. Pass self (a view controller reference) directly or declare sender as

    id sender = self;
    [ConnectingProgress startAnimation:sender];
    

    and

    id sender = self;
    [ConnectingProgress stopAnimation:sender];
    

    What’s the reason to declare a NSProgressIndicator variable ConnectingProgress starting with a capital C ? The capital starting letters are used for class, categories, etc. names, use connectingProgress instead.

    I hope the connectingProgress is initialized somewhere (probably at viewDidLoad) and added as a subView somewhere.

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

Sidebar

Related Questions

I would like to add a sprite image to an existing button which previously
I would like to add a preprocessor to HTML pages. Basically, I have a
I would like add an annotation similar to @RequestParam, though have it pull the
i would like to add a button that will Select / unselect the text
I would like to add button to toolbar or menu item to menu in
I would like add a new MessageBodyMember to my MessageContract which refers to a
i would like to add an additional button with a small icon to the
I would like to add a delay/sleep inside a while loop: I tried it
I would like to add some paragraphs or new lines or words dynamically but
I would like to add a field to the Django FlatPage database model, but

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.