Questions tagged [mbprogresshud]

MBProgressHUD is an iOS drop-in class that displays a translucent HUD with an indicator and/or labels while work is being done in a background thread.

MBProgressHUD is meant as a replacement for the undocumented, private UIKit UIProgressHUD with some additional features. MBProgressHUD works on any iOS version and is compatible with both ARC and non-ARC projects.

The github page is here

322 questions
4
votes
2 answers

Set a timeout for MBProgressHUD

I am using MBProgressHUD to show an activity indicator while downloading web service data. The app will be often be used in rural areas with poor connectivity so I want to be able to set a timeout for the HUD to say, 10 seconds (as just an arbitrary…
Pheepster
  • 6,045
  • 6
  • 41
  • 75
4
votes
1 answer

MBProgressHud and SDWebImagePrefetcher

I'm trying to show a custom MBProgressHUD while downloading a list of URLs with SDWebImagePrefetcher using NSURLConnection methods. SDWebImagePrefetcher has a method that, when called, shows in console the progress of the images download. Now, i…
Phillip
  • 4,276
  • 7
  • 42
  • 74
3
votes
1 answer

How to customize MBProgressHUD view on UIImagePickerController?

I have inserted a MBProgressHUD view on my image picker controller. It should work as an indicator to take a photo. For this, I customized MBProgressHUD such as below. - (void) drawRect:(CGRect)rect { ... CGRect allRect = self.bounds; UIImage* image…
3
votes
2 answers

How to update MBProgressHud with AFHTTPRequestOperation

I downloaded some examples in order to learn Ios. The examples include: AFNetworking; Inapp purchase (from RayW); MBProgressHud; In my viewcontroller i push a UIbutton which triggers the Inapp purchase Singleton example and start download a…
KevinC
  • 79
  • 2
  • 8
3
votes
2 answers

iOS MBProgressHUD : Show at Correct Timing

I have an tabbed App using UITabBarController. There are 2 tabs, linked to ViewController1 & ViewController2 respectively. When each view controller loads, it will fetch data from server. Therefore I use MBProgressHUD to show loading…
Raptor
  • 53,206
  • 45
  • 230
  • 366
3
votes
2 answers

MBProgressHUD and performselector problem - iphone

i wrote below code to MBProgressHUD: HUD = [MBProgressHUD showHUDAddedTo:self.view animated:YES]; [self.view addSubview:HUD]; HUD.delegate = self; HUD.labelText = NSLocalizedString(@"Loading Workbench", nil); HUD.detailsLabelText =…
vidya
  • 43
  • 9
3
votes
4 answers

MBProgressHud with gif image

Can I use gif image instead of default loading indicator? I am using this code so far but not getting any result. Can anyone suggest what is wrong in this code? #import "UIImage+GIF.h" -(void) showLoadingHUD:(NSString *)title { [self…
Niharika
  • 1,188
  • 15
  • 37
3
votes
4 answers

Cannot find interface declaration for 'UIView' in iOS Swift Project

I have a swift project which I'm making use of MBProgressHUD in through a Bridging header file. The issue I'm having is that UIView doesn't appear to be recognised as type and I don't know why. In my bridging header I have: #import…
user843337
3
votes
2 answers

MBProgressBarHUD not appearing with swift and iOS8

I'm trying to use MBProgressHUD (https://github.com/jdg/MBProgressHUD) and was able to get it working with my Podfile. However, now the hud does not appear. Has anyone been able to successfully get this working with swift? Podfile platform :ios,…
AG1
  • 6,648
  • 8
  • 40
  • 57
3
votes
1 answer

MBProgessHUD doesn't rotate anymore with iOS8

I've an app with MBProgressHUD attached on UIWindow that work perfectly in iOS 7.1.2. But now with iOS 8 the HUD doesn't follow the rotation. Is there a fix ?
Fry
  • 6,235
  • 8
  • 54
  • 93
3
votes
2 answers

AFNetworking : Handling of asynchronous get request with AFJSONRequestOperation

I have the following code inside a class (static method) which I call to get data from an API. I decided to make this a static method just so I can reuse it on some other parts of the app. + (NSArray*) getAllRoomsWithEventId:(NSNumber *)eventId{ …
gdubs
  • 2,724
  • 9
  • 55
  • 102
3
votes
2 answers

iOS AFNetworking blocking main thread

I just recently switched to AFNetworking to handle all my networking within my app. However, it now appears to be blocking the main thread so my MBProgressHUD won't spin until after the operation finishes and my pullToRefreshView will also not…
Jon Erickson
  • 1,876
  • 4
  • 30
  • 73
3
votes
2 answers

Checking MBProgressHUD status if it hide/show

I'm displaying some views,webVies and while they are loading i display an ProgressHud with waiting message. I'm using an instance of that object : MBProgressHUD * progrssHUD Using the show and hide methods to control over loading windows. In some…
vadim
  • 119
  • 3
  • 14
3
votes
3 answers

MBProgressHUD with NSURLConnection

I was trying to use MBProgressHUD with NSURLConnection. The example in Demo project of MBProgressHUD reports: - (IBAction)showURL:(id)sender { NSURL *URL = [NSURL URLWithString:@"https://github.com/matej/MBProgressHUD/zipball/master"]; …
Phillip
  • 4,276
  • 7
  • 42
  • 74
2
votes
2 answers

Use MBProgressHUD with multiple dispatches

What is the best way get the label to change for HUD on both the processing thread and main thread? [activitySpinner startAnimating]; //[HUD setLabelText:@"Connecting"]; //[HUD showUsingAnimation:YES]; …
Bot
  • 11,868
  • 11
  • 75
  • 131
1 2
3
21 22