In addition to browsing PDF e-books, graffiti PDF is completed as scheduled.
In order to correctly identify page flip gestures and graffiti gestures, we still need to separate browsing and graffiti, and the processing of different views is much less troublesome.
It mainly involves:
1. Multi-context, stratified painting
-(Void) drawlayer :( calayer *) layer incontext :( cgcontextref) CTX
2. Touch events of the touches family
-(Void) touchesbegan :( nsset *) touches withevent :( uievent *) event
-(Void) touchesmoved :( nsset *) touches withevent :( uievent *) event
......
3. initialize the page number of a single view
-(ID) initwithframe :( cgrect) frame onpage :( nsinteger) Page
4. Trajectory painting Method
Cg_extern void cgpathmovetopoint (cgmutablepathref path,
Const cgaffinetransform * m, cgfloat X, cgfloat y)
Cg_extern void cgpathaddlinetopoint (cgmutablepathref path,
Const cgaffinetransform * m, cgfloat X, cgfloat y)