Crashlytics is reporting a common crash where a CGRect (mediaBox from a new CPDFDocument) has NaN values. Modifying TouchUI library's Geometry.m file to make sure the scale factor is protected against divide by zero errors.
Fixed a crashing bug in iOS-PDF-Reader — setContentView: does not always add an observer for the contentView.frame keypath. However, dealloc always removes the observer. Added a guard against improper removal (which will crash the app).
Guard against invalid input on CPersistentCache's objectForKey:
ARC uses "strong" instead of "retain".
CPDFPage.m wasn't calling CGPDFPageRetain and CGPDFPageRelease properly.
Switched a "loadView" method to use "viewDidLoad" instead.
Cleaned up CPDFPageViewController's designated initializer.
Moved the previous drawRect: code for drawing a PDF page into a more efficient drawLayer:inContext: method.
Also, cleaned up some of the initializers.