JGProgressHUD icon indicating copy to clipboard operation
JGProgressHUD copied to clipboard

[UIView initWithFrame:] must be used from main thread only

Open leonhsieh opened this issue 8 months ago • 1 comments

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];

leonhsieh avatar Oct 18 '23 01:10 leonhsieh