Looking for how-to use UIGraphicsSetPDFContextURLForRect on iOS or Cocoa

Posted by user1676332 on Stack Overflow See other posts from Stack Overflow or by user1676332
Published on 2012-09-16T22:58:41Z Indexed on 2012/09/17 3:37 UTC
Read the original article Hit count: 348

Filed under:
|
|
|

I'm playing to manipulate PDF on iOS (display but also and mostly generation).

I wish to embed rectangular areas which act as "external" links (URLs like http://host.tld/path/file).

Do you know where I can find an example(s) of how to use the UIGraphicsSetPDFContextURLForRect function? I find absolutly nothing on Internet.

If I understand well, the only requirement is that the current graphic context should be PDF "type" and I think I respect this since, upstream, I call UIGraphicsPushContext why my PDF context as parameter (this was anyway required for methods like drawAtPoint: that I use also with success).

I do not think it is important but just in case I specify that this DOES NOT take place in the drawRect: of a View subclass.

You're quite right to say me unequivocally that I have "all wrong". The graphical environment is so sophisticated and rich in iOS that I assume to have not assimilated more than 1 or 2% for now.

Thank you in advance.

© Stack Overflow or respective owner

Related posts about ios

Related posts about cocoa