Skip to content

Instantly share code, notes, and snippets.

Ben Gottlieb bengottlieb

Block or report user

Report or block bengottlieb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
bengottlieb / PSPDFUIKitMainThreadGuard.m
Created Mar 1, 2017 — forked from steipete/PSPDFUIKitMainThreadGuard.m
This is a guard that tracks down UIKit access on threads other than main. This snippet is taken from the commercial iOS PDF framework, but relicensed under MIT. Works because a lot of calls internally call setNeedsDisplay or setNeedsLayout. Won't catch everything, but it's very lightweight and usually does the job.You might n…
View PSPDFUIKitMainThreadGuard.m
// MainThreadGuard.m
// Honor
// Created by Ben Gottlieb on 2/28/17.
// Copyright © 2017 Ben Gottlieb. All rights reserved.
#import <Foundation/Foundation.h>
You can’t perform that action at this time.