Hi,
NSObject+PerformBlock is only a utility category, but you can remove it and edit the methods that are using it.
Demo project uses this category only three times, and you can replace "performBlock afterDelay" with "performSelector afterDelay".
For example, in PDFView class now you can find:
[self performBlock:^{
if (!isDoubleTapping) {
[m_delegate OnSingleTapped:x:y];
}
} afterDelay:0.3];
You can replace this slice of code with:
[self performSelector:@selector(callSingleTapDelegate:) withObject:[NSValue valueWithCGPoint:CGPointMake(x, y)] afterDelay:0.3];
And create this simple method:
- (void)callSingleTapDelegate:(NSValue *)valuePoint
{
CGPoint point = [valuePoint CGPointValue];
if (!isDoubleTapping) {
[m_delegate OnSingleTapped:point.x:point.y];
}
}
You can repeat this operation for the others two occurrences of NSObject+PerformBlock usage (you can search "performBlock" in workspace to see all occurrences)