Added a View Contr and View for adding a new comment as a modal dialog. Can cancel and tap save, save doesnt work currently.
New comment view now saves to server on tapping save button. Returned comment is added to model.
Newly added comments now add themselves to the comments scrollview, and the view scrolls to show them. Deleted comments are removed from the model and hidden via animation.
New annotations are placed via long tap gesture, and saved. However, there seems to be a bug in Aji Pdf library that is giving an corrupt APAnnotation object that we build the the new annotation data with.
Added custom UI for adding annotations with canc and done buttons.
Added delete annotation functionality. Improved comments and comment UI. Minor cleanup of code.
Fixed sizing issues with comment header buttons. Completely redid storyboard view for the comments - separated out the header to it's own view and the scroller is now a sibling, not parent. Gixed horizontal and excessive scroll area issues. Fixed comments view sizing on storyboard.
Default highlighting color is yellow now. Fixed sizing issue where horizontal margins were ignored causing incorrect sizeWithText values. Fixed issue where pdf view was being added on top of the last view indefinitely - subviews are removed before new pdf file view is added.
Added files, updated Aji PDF lib. Fixed xcode project file.
Fixed gap due to erroneous constraints on comment header view and scroll view. Resized some things, everything lines up currently, though they are not wide enough yet.
Prevented popover subview sizing issues by only allowing popovr arrow to be up or down. Adjusted sizing of subviews in comments header.