ChikabuZ
ChikabuZ

Reputation: 10185

VFR Reader detect when page did rendered

I'm using vfrReader and I found that drawLayer:inContext in ReaderContentPage.m called multiple times during rendering. Is it possible to catch page did rendered event?

Upvotes: 2

Views: 164

Answers (1)

user3821934
user3821934

Reputation:

If you are willing to modify the vfrReader source, you can post an event after the CGContextDrawPDFPage call in the drawLayer:inContext: method. The CGContextDrawPDFPage function is synchronous, so the post is guaranteed to be called after the page in question has rendered.

Upvotes: 0

Related Questions