ODUIThreadGuard is an open source library from old donkey that helps you to make sure that your UI is not blocking the main thread.
ODUIThreadGuard implements automatically when added into your project, and can be configured to run only in debug mode if desired.
The features stated in the readme include:
– Passive implementation
– Throw an assertion if setNeedsDisplay, setNeedsLayout, or setNeedsDisplayInRect: is called for instantion of any UIView
– Get the thread stack to help you locate where you make the mistake
You can find ODUIThreadGuard on Github here.
A nice library for making sure UI changes don’t occur in the main thread.