0

I want to add SVProgressHud to show progress. I have use method :

[SVProgressHUD showWithStatus:@"Please Wait..."];

In didFinishLaunchingWithOptions method of AppDelegate.

But I am not able to see my progress view.

Fabio Berger
  • 1,921
  • 2
  • 24
  • 29
Amrit
  • 301
  • 2
  • 14
  • stop the project and run again and check properly it showing first time when you run application or everytime not showing ? and if possible post some code what you have tried ? – Badal Shah Feb 19 '16 at 07:25
  • - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. appDelegate = self; self.userArray = [NSMutableArray new]; [SVProgressHUD show]; return YES; } this is my code i have deleted my app and again reinstall it on simulator but the problem still persist. Is it possible to call SVProgressHud Methods from AppDelegate methods. – Amrit Feb 19 '16 at 08:04
  • @user2545737 Yes it is possible to call SVProgressHUD to call from appdelegate, are you dismissing the HUD andywhere in your app? – Rahul Patel Feb 19 '16 at 08:30
  • @RahulPatel Yes i m dismissing HUD by calling + (void)dismiss of SVProgressHUD – Amrit Feb 19 '16 at 08:41
  • try removing the hide code and see whether the progress HUD is showing or not – Rahul Patel Feb 19 '16 at 09:14

1 Answers1

0

try this .

and if possible set below method before execute the request

[SVProgressHUD showWithStatus:@"pleasewait.." maskType:SVProgressHUDMaskTypeBlack];

Download it from here

Badal Shah
  • 7,541
  • 2
  • 30
  • 65
  • Nothing happens by writing above code. But when i am calling above method from my ViewController class this works fine for me. – Amrit Feb 19 '16 at 08:46
  • i think yes it is because of svprogresshud take the hud from view not from window. so, first try to replace your svprogresshud.h amd .m file with attached .h and .m file . and if it's not work then use MBProgresshud. for download file check edited answer. – Badal Shah Feb 19 '16 at 08:52
  • I have use MBProgreeHud – Amrit Feb 23 '16 at 06:12
  • Good MBProgresshud is good to use. it can't conflict with another view controller. where as SVProgresshud conflict. so, you have to face problem in SVProgresshud. – Badal Shah Feb 23 '16 at 06:14