Open WhereFindYouAgin opened 4 years ago
...
CGRect viewRect;
CALayer *viewLayer;
...
- (void)layoutSubviews {
viewRect = self.bounds;
viewLayer = self.layer;
}
...
CGSize currentViewSize = viewRect.size;
...
this is main thread question, use viewRect replace self.bounds
__block CGRect currentBounds;
__block CGSize currentViewSize;
runOnMainQueueWithoutDeadlocking(^{
currentBounds = self.bounds;
currentViewSize = self.bounds.size;
});
use this
Main Thread Checker: UI API called on a background thread: .when I used GPUImageView this warring always happend , could you fix it。it happened in ios 13.3 Xcode 11.5.