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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:12:05+00:00 2026-05-27T03:12:05+00:00

I use this code to show MBProgress – (void)showSimple { // The hud will

  • 0

I use this code to show MBProgress

- (void)showSimple {
    // The hud will dispable all input on the view (use the higest view possible in the view hierarchy)
    HUD = [[MBProgressHUD alloc] initWithView:self.view];
    [self.view addSubview:HUD];


    // Regiser for HUD callbacks so we can remove it from the window at the right time
    HUD.delegate = self;

    // Show the HUD while the provided method executes in a new thread
    [HUD showWhileExecuting:@selector(myTask) onTarget:self withObject:nil animated:YES];}

- (void)myTask {
    // Do something usefull in here instead of sleeping ...
    sleep(3);
}

I want the activity indicator displays when not running MyTask but this method

- (void)request:(FBRequest *)request didLoad:(id)result {
}

i tried to change

[HUD showWhileExecuting:@selector(myTask) onTarget:self withObject:nil animated:YES];

to

[HUD showWhileExecuting:@selector(request) onTarget:self withObject:nil animated:YES];

or

[HUD showWhileExecuting:@selector(didLoad) onTarget:self withObject:nil animated:YES];

but it does not work

  • 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-05-27T03:12:06+00:00Added an answer on May 27, 2026 at 3:12 am

    I actually prefer SVProgressHUD over MGProgressHUD because it’s nicer, but whatever. Back to your problem.

    The problem with what you’re doing is you’re not taking into account for the arguments of your method. As long as your method doesn’t need the arguments, you could change your selector to include two empty arguments:

    [HUD showWhileExecuting:@selector(request::) onTarget:self withObject:nil animated:YES];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use this code to show user control on main form private void MainForm_Load(object
I use this code to show all my annotations on my map: MKMapRect zoomRect
I use this code to determine checkbox width and height: var chk = $('input[type=checkbox]:first');
i have a jquery login drop down I use this code to show the
Why this code show me a window without image? I try to use QByteArray
I'm trying to use this code to countdown from 10 seconds, then show a
This question is about this topic: Vb.net all combinations Question: I use this code
I use this code to create and show a MessageWindow: var newTitleWindow:MessageWindow = PopUpManager.createPopUp(contextView,MessageWindow,
I use this code to show and hide the div with a class named
i use this code to get image from facebook profile and show it on

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.