KVNProgress not working under UIPageViewController

331 Views Asked by At

Here is my code under viewDidLoad method of a single ViewController as a child of my PageViewController.

- (void)viewDidLoad {

    [super viewDidLoad];

    [KVNProgress showWithStatus:@"Loading"]; // Not shown on child vc, see attached screen shot

    [[DataManager sharedInstance]getWeatherReportForPlace:@"Kolkata" completionBLock:^(WeatherReport *report, NSError *error) {

        [KVNProgress showSuccessWithStatus:@"Success"];

    }];
}

If I add [KVNProgress showWithStatus:@"Loading"]; inside completionBlock then it's working but it is only showing success.

But I want a Loading until the completion Block finish it's execution.For that I need to put the [KVNProgress showWithStatus:@"Loading"]; outside completionBlock.

Here is my scenario

enter image description here

0

There are 0 best solutions below