Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about iOS development and PDF

Integrating RadaeePDF in iOS library problem

More
IP: 192.168.0.71 9 years 4 months ago #12319 by PXLPDF
Hello,
I managed to integrate radaeepdf library in my test application using help tutorial you provided. But now, I have iOS library and I did the same procedure, but build fails all the time, problem is in pch file, because it imports NSObject+PerformBlock.m and <Foundation/Foundation.h> which is needed there can not be built (error is COULD NOT BUILD MODULE FOUNDATION) . I set everything like in the other project where everything is working, the difference is only because first project was an iOS app, and this one is iOS lib. Can you propose me another solution for including radaeepdf library in my project, is it neccessary to use pch file? I do not need PDF Viewer in my project, I need only to open PDF document and add/replace some images and text there, without viewing it.
More
IP: 192.168.0.71 9 years 4 months ago #12327 by emanuele
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:
Code:
[self performBlock:^{ if (!isDoubleTapping) { [m_delegate OnSingleTapped:x:y]; } } afterDelay:0.3];
You can replace this slice of code with:
Code:
[self performSelector:@selector(callSingleTapDelegate:) withObject:[NSValue valueWithCGPoint:CGPointMake(x, y)] afterDelay:0.3];
And create this simple method:
Code:
- (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)
Time to create page: 0.399 seconds
Powered by Kunena Forum