mrackwitz / MRProgress

Collection of iOS drop-in components to visualize progress
MIT License
2.55k stars 306 forks source link

App crashes when trying to display #84

Closed Daltron closed 9 years ago

Daltron commented 9 years ago

In my view controller, when a button is pushed, I have a method that calls for a progress view to be displayed like this:

 [MRProgressOverlayView showOverlayAddedTo:self.view title:@"Uploading..." mode:MRProgressOverlayViewModeIndeterminate animated:true];

As soon as that method is called, the app crashed and gives me an error in the console of:

Assertion failed: (transform_is_valid(m)), function CGPathRef CGPathCreateWithRect(CGRect, const CGAffineTransform *), file Paths/CGPath.cc, line 179.

I am not sure what to do. Any help would be greatly appreciated!

Thanks

mrackwitz commented 9 years ago

Where does this happen? Is the view controller then already/still on screen and layouted? (Has self.view.frame a positive size?)

Daltron commented 9 years ago

Thanks for responding but I believe I figured out the problem. I was trying to display (for testing purposes) in the init method of the view instead of waiting till the view was completely loaded. This was the reason for the crashing. It is now working and all I can say is that this library is absolutely beautiful. Awesome work! :+1:

mrackwitz commented 9 years ago

Thanks for leaving your feedback!