You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I have encounter a thread issue when using indicatorView of JGProgressHUD:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread.'
And a thread warning
-[UIView initWithFrame:] must be used from main thread only
appears on this line:
self = [super initWithFrame:CGRectZero];
The text was updated successfully, but these errors were encountered:
This is caused by calling JGProgressHUD methods on a background thread. JGProgressHUD is a UI element, inheriting from UIView and all UIView methods have to be called from the main thread.
So make sure that all your code that interacts with the hud is executed on the main thread.
Hi there, I have encounter a thread issue when using indicatorView of JGProgressHUD:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread.'
And a thread warning
-[UIView initWithFrame:] must be used from main thread only
appears on this line:
The text was updated successfully, but these errors were encountered: