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

Shadow generation too long #2

Closed
axmav opened this issue Oct 11, 2017 · 2 comments
Closed

Shadow generation too long #2

axmav opened this issue Oct 11, 2017 · 2 comments

Comments

@axmav
Copy link

axmav commented Oct 11, 2017

Hello!
I add ShadowView in my TableViewCell, but shadow generation is too long.
================================================================= Main Thread Checker: UI API called on a background thread: -[UIView layer] PID: 70222, TID: 17479263, Thread name: (none), Queue name: com.apple.root.utility-qos, QoS: 17 Backtrace: 4 ShadowView 0x000000010afb5e5d _T0So6UIViewC10ShadowViewE7asImageSo7UIImageCfg + 29 5 ShadowView 0x000000010afabf1d _T010ShadowViewAAC16createLayerImage33_9B9E92D7988F296C5B194A5602A768AFLLyyF + 61 6 ShadowView 0x000000010afabe96 _T010ShadowViewAAC06updateA0yyFyycfU_ + 150 7 ShadowView 0x000000010afabedc _T010ShadowViewAAC06updateA0yyFyycfU_TA + 12 8 ShadowView 0x000000010afacad9 _T0Ix_IyB_TR + 41 9 libdispatch.dylib 0x000000010f6f63f7 _dispatch_call_block_and_release + 12 10 libdispatch.dylib 0x000000010f6f743c _dispatch_client_callout + 8 11 libdispatch.dylib 0x000000010f703499 _dispatch_root_queue_drain + 1444 12 libdispatch.dylib 0x000000010f702e97 _dispatch_worker_thread3 + 132 13 libsystem_pthread.dylib 0x000000010fbba5a2 _pthread_wqthread + 1299 14 libsystem_pthread.dylib 0x000000010fbba07d start_wqthread + 13

@PierrePerrin
Copy link
Owner

Are you calling the shadow generation only on the main thread ?

@axmav
Copy link
Author

axmav commented Dec 1, 2017

@PierrePerrin yes in UITableViewCell awakeFromNib()

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

2 participants