Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to send MRProgressView to other viewController? #135

Open
harunozdemir opened this issue Feb 17, 2017 · 0 comments
Open

How to send MRProgressView to other viewController? #135

harunozdemir opened this issue Feb 17, 2017 · 0 comments

Comments

@harunozdemir
Copy link

Hi,
I want to send the MRProgressView to the other viewController. I used it like this but it did not work.

FirstViewController.m

self.overlayView = [MRProgressOverlayView showOverlayAddedTo:self.navigationController.view animated:YES];        
self.overlayView.mode = MRProgressOverlayViewModeIndeterminateSmall;
self.overlayView.titleLabelText = @"";
[AppDelegate setOverlayView:self.overlayView]

AppDelegate.m

// showing overlay = nil
-(void)setOverlayView:(MRProgressOverlayView *)overlay{
  self.overlayView = overlay;
}

// I will get from here
-(MRProgressOverlayView *)getOverlayView{
   return self.overlayView;
}

SecondViewController.m

// call from here
[[AppDelegate getOverlayView] dismiss:YES];

But it always calls setOverlayView and says overlay = nil.
why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant