├── Pods ├── Headers │ ├── Private │ │ ├── Masonry │ │ │ ├── Masonry.h │ │ │ ├── MASUtilities.h │ │ │ ├── MASConstraint.h │ │ │ ├── MASViewAttribute.h │ │ │ ├── MASViewConstraint.h │ │ │ ├── View+MASAdditions.h │ │ │ ├── MASConstraintMaker.h │ │ │ ├── MASLayoutConstraint.h │ │ │ ├── NSArray+MASAdditions.h │ │ │ ├── MASCompositeConstraint.h │ │ │ ├── MASConstraint+Private.h │ │ │ ├── View+MASShorthandAdditions.h │ │ │ ├── ViewController+MASAdditions.h │ │ │ ├── NSArray+MASShorthandAdditions.h │ │ │ └── NSLayoutConstraint+MASDebugAdditions.h │ │ ├── BButton │ │ │ ├── BButton.h │ │ │ ├── UIColor+BButton.h │ │ │ └── NSString+FontAwesome.h │ │ ├── MBProgressHUD │ │ │ └── MBProgressHUD.h │ │ ├── AFNetworking │ │ │ ├── AFNetworking.h │ │ │ ├── AFSecurityPolicy.h │ │ │ ├── AFHTTPSessionManager.h │ │ │ ├── AFURLSessionManager.h │ │ │ ├── AFHTTPRequestOperation.h │ │ │ ├── UIKit+AFNetworking.h │ │ │ ├── AFURLConnectionOperation.h │ │ │ ├── AFURLRequestSerialization.h │ │ │ ├── UIButton+AFNetworking.h │ │ │ ├── UIImage+AFNetworking.h │ │ │ ├── UIWebView+AFNetworking.h │ │ │ ├── AFURLResponseSerialization.h │ │ │ ├── UIAlertView+AFNetworking.h │ │ │ ├── UIImageView+AFNetworking.h │ │ │ ├── AFHTTPRequestOperationManager.h │ │ │ ├── AFNetworkReachabilityManager.h │ │ │ ├── UIProgressView+AFNetworking.h │ │ │ ├── UIRefreshControl+AFNetworking.h │ │ │ ├── AFNetworkActivityIndicatorManager.h │ │ │ └── UIActivityIndicatorView+AFNetworking.h │ │ ├── SVProgressHUD │ │ │ ├── SVProgressHUD.h │ │ │ ├── SVRadialGradientLayer.h │ │ │ ├── SVProgressAnimatedView.h │ │ │ └── SVIndefiniteAnimatedView.h │ │ └── ChameleonFramework │ │ │ ├── Chameleon.h │ │ │ ├── Chameleon_.h │ │ │ ├── ChameleonEnums.h │ │ │ ├── ChameleonMacros.h │ │ │ ├── ChameleonConstants.h │ │ │ ├── NSArray+Chameleon.h │ │ │ ├── UIAppearance+Swift.h │ │ │ ├── UIButton+Chameleon.h │ │ │ ├── UIColor+Chameleon.h │ │ │ ├── UILabel+Chameleon.h │ │ │ ├── UIView+ChameleonPrivate.h │ │ │ ├── UIColor+ChameleonPrivate.h │ │ │ ├── UIImage+ChameleonPrivate.h │ │ │ ├── UIViewController+Chameleon.h │ │ │ └── UINavigationController+Chameleon.h │ └── Public │ │ ├── Masonry │ │ ├── Masonry.h │ │ ├── MASConstraint.h │ │ ├── MASUtilities.h │ │ ├── MASConstraintMaker.h │ │ ├── MASViewAttribute.h │ │ ├── MASViewConstraint.h │ │ ├── View+MASAdditions.h │ │ ├── MASLayoutConstraint.h │ │ ├── NSArray+MASAdditions.h │ │ ├── MASCompositeConstraint.h │ │ ├── MASConstraint+Private.h │ │ ├── View+MASShorthandAdditions.h │ │ ├── ViewController+MASAdditions.h │ │ ├── NSArray+MASShorthandAdditions.h │ │ └── NSLayoutConstraint+MASDebugAdditions.h │ │ ├── BButton │ │ ├── BButton.h │ │ ├── UIColor+BButton.h │ │ └── NSString+FontAwesome.h │ │ ├── MBProgressHUD │ │ └── MBProgressHUD.h │ │ ├── AFNetworking │ │ ├── AFNetworking.h │ │ ├── AFSecurityPolicy.h │ │ ├── AFHTTPSessionManager.h │ │ ├── AFURLSessionManager.h │ │ ├── AFHTTPRequestOperation.h │ │ ├── UIImage+AFNetworking.h │ │ ├── UIKit+AFNetworking.h │ │ ├── AFURLConnectionOperation.h │ │ ├── AFURLRequestSerialization.h │ │ ├── UIButton+AFNetworking.h │ │ ├── UIWebView+AFNetworking.h │ │ ├── AFNetworkReachabilityManager.h │ │ ├── AFURLResponseSerialization.h │ │ ├── UIAlertView+AFNetworking.h │ │ ├── UIImageView+AFNetworking.h │ │ ├── AFHTTPRequestOperationManager.h │ │ ├── UIProgressView+AFNetworking.h │ │ ├── UIRefreshControl+AFNetworking.h │ │ ├── AFNetworkActivityIndicatorManager.h │ │ └── UIActivityIndicatorView+AFNetworking.h │ │ ├── SVProgressHUD │ │ ├── SVProgressHUD.h │ │ ├── SVRadialGradientLayer.h │ │ ├── SVIndefiniteAnimatedView.h │ │ └── SVProgressAnimatedView.h │ │ └── ChameleonFramework │ │ ├── Chameleon.h │ │ ├── Chameleon_.h │ │ ├── ChameleonEnums.h │ │ ├── ChameleonMacros.h │ │ ├── ChameleonConstants.h │ │ ├── NSArray+Chameleon.h │ │ ├── UIAppearance+Swift.h │ │ ├── UIButton+Chameleon.h │ │ ├── UIColor+Chameleon.h │ │ ├── UILabel+Chameleon.h │ │ ├── UIColor+ChameleonPrivate.h │ │ ├── UIImage+ChameleonPrivate.h │ │ ├── UIView+ChameleonPrivate.h │ │ ├── UIViewController+Chameleon.h │ │ └── UINavigationController+Chameleon.h ├── Target Support Files │ ├── BButton │ │ ├── BButton-prefix.pch │ │ ├── BButton-dummy.m │ │ └── BButton.xcconfig │ ├── Masonry │ │ ├── Masonry-prefix.pch │ │ ├── Masonry-dummy.m │ │ └── Masonry.xcconfig │ ├── MBProgressHUD │ │ ├── MBProgressHUD-prefix.pch │ │ ├── MBProgressHUD-dummy.m │ │ └── MBProgressHUD.xcconfig │ ├── SVProgressHUD │ │ ├── SVProgressHUD-prefix.pch │ │ ├── SVProgressHUD-dummy.m │ │ └── SVProgressHUD.xcconfig │ ├── ChameleonFramework │ │ ├── ChameleonFramework-prefix.pch │ │ ├── ChameleonFramework-dummy.m │ │ └── ChameleonFramework.xcconfig │ ├── AFNetworking │ │ ├── AFNetworking-dummy.m │ │ ├── AFNetworking-prefix.pch │ │ └── AFNetworking.xcconfig │ └── Pods-PDFViewAndDownload │ │ ├── Pods-PDFViewAndDownload-dummy.m │ │ ├── Pods-PDFViewAndDownload.debug.xcconfig │ │ └── Pods-PDFViewAndDownload.release.xcconfig ├── BButton │ ├── BButton │ │ ├── resources │ │ │ └── FontAwesome.ttf │ │ └── Classes │ │ │ ├── NSString+FontAwesome.m │ │ │ └── UIColor+BButton.h │ └── LICENSE ├── SVProgressHUD │ ├── SVProgressHUD │ │ ├── SVProgressHUD.bundle │ │ │ ├── info.png │ │ │ ├── error.png │ │ │ ├── error@2x.png │ │ │ ├── error@3x.png │ │ │ ├── info@2x.png │ │ │ ├── info@3x.png │ │ │ ├── success.png │ │ │ ├── angle-mask.png │ │ │ ├── success@2x.png │ │ │ ├── success@3x.png │ │ │ ├── angle-mask@2x.png │ │ │ └── angle-mask@3x.png │ │ ├── SVRadialGradientLayer.h │ │ ├── SVIndefiniteAnimatedView.h │ │ ├── SVProgressAnimatedView.h │ │ └── SVRadialGradientLayer.m │ └── LICENSE.txt ├── Masonry │ ├── Masonry │ │ ├── MASLayoutConstraint.m │ │ ├── NSLayoutConstraint+MASDebugAdditions.h │ │ ├── MASLayoutConstraint.h │ │ ├── MASCompositeConstraint.h │ │ ├── Masonry.h │ │ ├── ViewController+MASAdditions.h │ │ ├── NSArray+MASShorthandAdditions.h │ │ ├── MASViewAttribute.m │ │ ├── MASViewAttribute.h │ │ ├── ViewController+MASAdditions.m │ │ ├── MASViewConstraint.h │ │ └── MASConstraint+Private.h │ └── LICENSE ├── ChameleonFramework │ ├── Pod │ │ └── Classes │ │ │ └── Objective-C │ │ │ ├── ChameleonConstants.m │ │ │ ├── UIButton+Chameleon.h │ │ │ ├── UILabel+Chameleon.h │ │ │ ├── UIView+ChameleonPrivate.h │ │ │ ├── UILabel+Chameleon.m │ │ │ ├── UIAppearance+Swift.h │ │ │ ├── ChameleonConstants.h │ │ │ ├── UIImage+ChameleonPrivate.h │ │ │ ├── UIButton+Chameleon.m │ │ │ ├── UINavigationController+Chameleon.h │ │ │ ├── UIColor+ChameleonPrivate.h │ │ │ ├── Chameleon.h │ │ │ ├── ChameleonEnums.h │ │ │ ├── UIAppearance+Swift.m │ │ │ ├── UIView+ChameleonPrivate.m │ │ │ ├── UIViewController+Chameleon.h │ │ │ ├── Chameleon_.h │ │ │ └── UIImage+ChameleonPrivate.m │ └── LICENSE.md ├── MBProgressHUD │ └── LICENSE ├── AFNetworking │ ├── LICENSE │ ├── UIKit+AFNetworking │ │ ├── UIImage+AFNetworking.h │ │ ├── UIKit+AFNetworking.h │ │ ├── UIActivityIndicatorView+AFNetworking.h │ │ └── UIRefreshControl+AFNetworking.h │ └── AFNetworking │ │ └── AFNetworking.h ├── Manifest.lock └── Pods.xcodeproj │ └── xcuserdata │ └── Jeffrey.xcuserdatad │ └── xcschemes │ ├── xcschememanagement.plist │ ├── BButton.xcscheme │ ├── Masonry.xcscheme │ ├── AFNetworking.xcscheme │ ├── MBProgressHUD.xcscheme │ ├── SVProgressHUD.xcscheme │ ├── ChameleonFramework.xcscheme │ └── Pods-PDFViewAndDownload.xcscheme ├── PDFViewAndDownload ├── Assets.xcassets │ ├── Contents.json │ └── AppIcon.appiconset │ │ ├── Icon.png │ │ ├── Icon-72.png │ │ ├── Icon-76.png │ │ ├── Icon@2x.png │ │ ├── Icon-60@2x.png │ │ ├── Icon-60@3x.png │ │ ├── Icon-72@2x.png │ │ ├── Icon-76@2x.png │ │ ├── Icon-Small.png │ │ ├── Icon-Small-40.png │ │ ├── Icon-Small-50.png │ │ ├── Icon-Small@2x.png │ │ ├── Icon-Small@3x.png │ │ ├── iTunesArtwork.png │ │ ├── Icon-Small-40@2x.png │ │ ├── Icon-Small-40@3x.png │ │ ├── Icon-Small-50@2x.png │ │ └── iTunesArtwork@2x.png ├── HLLResources │ └── HLLPDFs │ │ └── git-cheatsheet.pdf ├── HLLClasses │ ├── HLLLibs │ │ └── Reader │ │ │ ├── Graphics │ │ │ ├── AppIcon-076.png │ │ │ ├── AppIcon-120.png │ │ │ ├── AppIcon-152.png │ │ │ ├── AppIcon-167.png │ │ │ ├── AppIcon-180.png │ │ │ ├── Reader-Email.png │ │ │ ├── Reader-Export.png │ │ │ ├── Reader-Mark-N.png │ │ │ ├── Reader-Mark-Y.png │ │ │ ├── Reader-Print.png │ │ │ ├── Reader-Thumbs.png │ │ │ ├── Reader-Button-H.png │ │ │ ├── Reader-Button-N.png │ │ │ ├── Reader-Email@2x.png │ │ │ ├── Reader-Email@3x.png │ │ │ ├── Reader-Export@2x.png │ │ │ ├── Reader-Export@3x.png │ │ │ ├── Reader-Mark-N@2x.png │ │ │ ├── Reader-Mark-N@3x.png │ │ │ ├── Reader-Mark-Y@2x.png │ │ │ ├── Reader-Mark-Y@3x.png │ │ │ ├── Reader-Print@2x.png │ │ │ ├── Reader-Print@3x.png │ │ │ ├── Reader-Thumbs@2x.png │ │ │ ├── Reader-Thumbs@3x.png │ │ │ ├── Reader-Button-H@2x.png │ │ │ ├── Reader-Button-H@3x.png │ │ │ ├── Reader-Button-N@2x.png │ │ │ └── Reader-Button-N@3x.png │ │ │ └── Sources │ │ │ ├── ReaderContentTile.h │ │ │ ├── ReaderConstants.m │ │ │ ├── UIXToolbarView.h │ │ │ ├── ReaderThumbFetch.h │ │ │ ├── ReaderThumbRender.h │ │ │ ├── ReaderThumbView.h │ │ │ ├── ReaderConstants.h │ │ │ ├── CGPDFDocument.h │ │ │ ├── ReaderViewController.h │ │ │ ├── ThumbsMainToolbar.h │ │ │ ├── ReaderThumbQueue.h │ │ │ ├── ReaderContentPage.h │ │ │ ├── ReaderDocumentOutline.h │ │ │ ├── ReaderThumbCache.h │ │ │ ├── ReaderThumbRequest.h │ │ │ ├── ThumbsViewController.h │ │ │ ├── ReaderMainToolbar.h │ │ │ ├── ReaderContentView.h │ │ │ ├── ReaderContentTile.m │ │ │ ├── ReaderDocument.h │ │ │ ├── ReaderMainPagebar.h │ │ │ ├── ReaderThumbsView.h │ │ │ └── ReaderThumbView.m │ └── HLLItems │ │ ├── HLLBasePart │ │ ├── BaseViewController.h │ │ └── BaseViewController.m │ │ ├── HLPDFView │ │ ├── HLLView │ │ │ ├── HLLMenuCell.h │ │ │ └── HLLMenuCell.m │ │ └── HLLController │ │ │ ├── HLLPDFViewController.h │ │ │ ├── HLLWebViewController.h │ │ │ └── HLLWebViewController.m │ │ ├── HLLHomePart │ │ └── HLLController │ │ │ ├── HLLTestColorViewController.h │ │ │ └── HLLHomeViewController.h │ │ ├── HLLPDFDownload │ │ └── HLLController │ │ │ └── HLLPDFDownloadViewController.h │ │ └── HLLMain │ │ ├── HLLAppDelegate.h │ │ └── HLLAppDelegate.m ├── main.m ├── Config.pch ├── Base.lproj │ ├── Main.storyboard │ └── LaunchScreen.storyboard └── Info.plist ├── PDFViewAndDownload.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcuserdata │ └── Jeffrey.xcuserdatad │ └── xcschemes │ └── xcschememanagement.plist ├── Podfile ├── PDFViewAndDownload.xcworkspace ├── contents.xcworkspacedata └── xcuserdata │ └── Jeffrey.xcuserdatad │ └── xcdebugger │ └── Breakpoints_v2.xcbkptlist ├── .gitignore ├── README.md ├── PDFViewAndDownloadTests ├── Info.plist └── PDFViewAndDownloadTests.m ├── PDFViewAndDownloadUITests ├── Info.plist └── PDFViewAndDownloadUITests.m ├── LICENSE └── Podfile.lock /Pods/Headers/Private/Masonry/Masonry.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/Masonry.h -------------------------------------------------------------------------------- /Pods/Headers/Public/Masonry/Masonry.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/Masonry.h -------------------------------------------------------------------------------- /Pods/Headers/Private/BButton/BButton.h: -------------------------------------------------------------------------------- 1 | ../../../BButton/BButton/Classes/BButton.h -------------------------------------------------------------------------------- /Pods/Headers/Private/Masonry/MASUtilities.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/MASUtilities.h -------------------------------------------------------------------------------- /Pods/Headers/Public/BButton/BButton.h: -------------------------------------------------------------------------------- 1 | ../../../BButton/BButton/Classes/BButton.h -------------------------------------------------------------------------------- /Pods/Headers/Public/Masonry/MASConstraint.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/MASConstraint.h -------------------------------------------------------------------------------- /Pods/Headers/Public/Masonry/MASUtilities.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/MASUtilities.h -------------------------------------------------------------------------------- /Pods/Headers/Private/MBProgressHUD/MBProgressHUD.h: -------------------------------------------------------------------------------- 1 | ../../../MBProgressHUD/MBProgressHUD.h -------------------------------------------------------------------------------- /Pods/Headers/Private/Masonry/MASConstraint.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/MASConstraint.h -------------------------------------------------------------------------------- /Pods/Headers/Public/MBProgressHUD/MBProgressHUD.h: -------------------------------------------------------------------------------- 1 | ../../../MBProgressHUD/MBProgressHUD.h -------------------------------------------------------------------------------- /Pods/Headers/Private/Masonry/MASViewAttribute.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/MASViewAttribute.h -------------------------------------------------------------------------------- /Pods/Headers/Private/Masonry/MASViewConstraint.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/MASViewConstraint.h -------------------------------------------------------------------------------- /Pods/Headers/Private/Masonry/View+MASAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/View+MASAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Public/Masonry/MASConstraintMaker.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/MASConstraintMaker.h -------------------------------------------------------------------------------- /Pods/Headers/Public/Masonry/MASViewAttribute.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/MASViewAttribute.h -------------------------------------------------------------------------------- /Pods/Headers/Public/Masonry/MASViewConstraint.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/MASViewConstraint.h -------------------------------------------------------------------------------- /Pods/Headers/Public/Masonry/View+MASAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/View+MASAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFNetworking.h -------------------------------------------------------------------------------- /Pods/Headers/Private/BButton/UIColor+BButton.h: -------------------------------------------------------------------------------- 1 | ../../../BButton/BButton/Classes/UIColor+BButton.h -------------------------------------------------------------------------------- /Pods/Headers/Private/Masonry/MASConstraintMaker.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/MASConstraintMaker.h -------------------------------------------------------------------------------- /Pods/Headers/Private/Masonry/MASLayoutConstraint.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/MASLayoutConstraint.h -------------------------------------------------------------------------------- /Pods/Headers/Private/Masonry/NSArray+MASAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/NSArray+MASAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFNetworking.h -------------------------------------------------------------------------------- /Pods/Headers/Public/BButton/UIColor+BButton.h: -------------------------------------------------------------------------------- 1 | ../../../BButton/BButton/Classes/UIColor+BButton.h -------------------------------------------------------------------------------- /Pods/Headers/Public/Masonry/MASLayoutConstraint.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/MASLayoutConstraint.h -------------------------------------------------------------------------------- /Pods/Headers/Public/Masonry/NSArray+MASAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/NSArray+MASAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Private/Masonry/MASCompositeConstraint.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/MASCompositeConstraint.h -------------------------------------------------------------------------------- /Pods/Headers/Private/Masonry/MASConstraint+Private.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/MASConstraint+Private.h -------------------------------------------------------------------------------- /Pods/Headers/Private/SVProgressHUD/SVProgressHUD.h: -------------------------------------------------------------------------------- 1 | ../../../SVProgressHUD/SVProgressHUD/SVProgressHUD.h -------------------------------------------------------------------------------- /Pods/Headers/Public/Masonry/MASCompositeConstraint.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/MASCompositeConstraint.h -------------------------------------------------------------------------------- /Pods/Headers/Public/Masonry/MASConstraint+Private.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/MASConstraint+Private.h -------------------------------------------------------------------------------- /Pods/Headers/Public/SVProgressHUD/SVProgressHUD.h: -------------------------------------------------------------------------------- 1 | ../../../SVProgressHUD/SVProgressHUD/SVProgressHUD.h -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/AFSecurityPolicy.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFSecurityPolicy.h -------------------------------------------------------------------------------- /Pods/Headers/Private/BButton/NSString+FontAwesome.h: -------------------------------------------------------------------------------- 1 | ../../../BButton/BButton/Classes/NSString+FontAwesome.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/AFSecurityPolicy.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFSecurityPolicy.h -------------------------------------------------------------------------------- /Pods/Headers/Public/BButton/NSString+FontAwesome.h: -------------------------------------------------------------------------------- 1 | ../../../BButton/BButton/Classes/NSString+FontAwesome.h -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/AFHTTPSessionManager.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFHTTPSessionManager.h -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/AFURLSessionManager.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFURLSessionManager.h -------------------------------------------------------------------------------- /Pods/Headers/Private/Masonry/View+MASShorthandAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/View+MASShorthandAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Private/Masonry/ViewController+MASAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/ViewController+MASAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/AFHTTPSessionManager.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFHTTPSessionManager.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/AFURLSessionManager.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFURLSessionManager.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ChameleonFramework/Chameleon.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/Chameleon.h -------------------------------------------------------------------------------- /Pods/Headers/Public/Masonry/View+MASShorthandAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/View+MASShorthandAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Public/Masonry/ViewController+MASAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/ViewController+MASAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/AFHTTPRequestOperation.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFHTTPRequestOperation.h -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/UIKit+AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/UIKit+AFNetworking.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ChameleonFramework/Chameleon.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/Chameleon.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ChameleonFramework/Chameleon_.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/Chameleon_.h -------------------------------------------------------------------------------- /Pods/Headers/Private/Masonry/NSArray+MASShorthandAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/NSArray+MASShorthandAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Private/SVProgressHUD/SVRadialGradientLayer.h: -------------------------------------------------------------------------------- 1 | ../../../SVProgressHUD/SVProgressHUD/SVRadialGradientLayer.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/AFHTTPRequestOperation.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFHTTPRequestOperation.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/UIImage+AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/UIImage+AFNetworking.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/UIKit+AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/UIKit+AFNetworking.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ChameleonFramework/Chameleon_.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/Chameleon_.h -------------------------------------------------------------------------------- /Pods/Headers/Public/Masonry/NSArray+MASShorthandAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/NSArray+MASShorthandAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Public/SVProgressHUD/SVRadialGradientLayer.h: -------------------------------------------------------------------------------- 1 | ../../../SVProgressHUD/SVProgressHUD/SVRadialGradientLayer.h -------------------------------------------------------------------------------- /Pods/Target Support Files/BButton/BButton-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Masonry/Masonry-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/AFURLConnectionOperation.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFURLConnectionOperation.h -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/AFURLRequestSerialization.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFURLRequestSerialization.h -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/UIButton+AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.h -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/UIImage+AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/UIImage+AFNetworking.h -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/UIWebView+AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.h -------------------------------------------------------------------------------- /Pods/Headers/Private/SVProgressHUD/SVProgressAnimatedView.h: -------------------------------------------------------------------------------- 1 | ../../../SVProgressHUD/SVProgressHUD/SVProgressAnimatedView.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/AFURLConnectionOperation.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFURLConnectionOperation.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/AFURLRequestSerialization.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFURLRequestSerialization.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/UIButton+AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/UIWebView+AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ChameleonFramework/ChameleonEnums.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/ChameleonEnums.h -------------------------------------------------------------------------------- /Pods/Headers/Public/SVProgressHUD/SVIndefiniteAnimatedView.h: -------------------------------------------------------------------------------- 1 | ../../../SVProgressHUD/SVProgressHUD/SVIndefiniteAnimatedView.h -------------------------------------------------------------------------------- /Pods/Headers/Public/SVProgressHUD/SVProgressAnimatedView.h: -------------------------------------------------------------------------------- 1 | ../../../SVProgressHUD/SVProgressHUD/SVProgressAnimatedView.h -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/AFURLResponseSerialization.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFURLResponseSerialization.h -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/UIAlertView+AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/UIAlertView+AFNetworking.h -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/UIImageView+AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ChameleonFramework/ChameleonEnums.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/ChameleonEnums.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ChameleonFramework/ChameleonMacros.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/ChameleonMacros.h -------------------------------------------------------------------------------- /Pods/Headers/Private/SVProgressHUD/SVIndefiniteAnimatedView.h: -------------------------------------------------------------------------------- 1 | ../../../SVProgressHUD/SVProgressHUD/SVIndefiniteAnimatedView.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/AFNetworkReachabilityManager.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFNetworkReachabilityManager.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/AFURLResponseSerialization.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFURLResponseSerialization.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/UIAlertView+AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/UIAlertView+AFNetworking.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/UIImageView+AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ChameleonFramework/ChameleonMacros.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/ChameleonMacros.h -------------------------------------------------------------------------------- /Pods/Target Support Files/MBProgressHUD/MBProgressHUD-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Pods/Target Support Files/SVProgressHUD/SVProgressHUD-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/AFHTTPRequestOperationManager.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFHTTPRequestOperationManager.h -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/AFNetworkReachabilityManager.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFNetworkReachabilityManager.h -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/UIProgressView+AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ChameleonFramework/ChameleonConstants.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/ChameleonConstants.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ChameleonFramework/NSArray+Chameleon.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/NSArray+Chameleon.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ChameleonFramework/UIAppearance+Swift.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/UIAppearance+Swift.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ChameleonFramework/UIButton+Chameleon.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/UIButton+Chameleon.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ChameleonFramework/UIColor+Chameleon.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/UIColor+Chameleon.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ChameleonFramework/UILabel+Chameleon.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/UILabel+Chameleon.h -------------------------------------------------------------------------------- /Pods/Headers/Private/Masonry/NSLayoutConstraint+MASDebugAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/NSLayoutConstraint+MASDebugAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/AFHTTPRequestOperationManager.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/AFNetworking/AFHTTPRequestOperationManager.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/UIProgressView+AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ChameleonFramework/ChameleonConstants.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/ChameleonConstants.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ChameleonFramework/NSArray+Chameleon.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/NSArray+Chameleon.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ChameleonFramework/UIAppearance+Swift.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/UIAppearance+Swift.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ChameleonFramework/UIButton+Chameleon.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/UIButton+Chameleon.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ChameleonFramework/UIColor+Chameleon.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/UIColor+Chameleon.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ChameleonFramework/UILabel+Chameleon.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/UILabel+Chameleon.h -------------------------------------------------------------------------------- /Pods/Headers/Public/Masonry/NSLayoutConstraint+MASDebugAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../Masonry/Masonry/NSLayoutConstraint+MASDebugAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/UIRefreshControl+AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/UIRefreshControl+AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.h -------------------------------------------------------------------------------- /Pods/Target Support Files/ChameleonFramework/ChameleonFramework-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Pods/Headers/Private/ChameleonFramework/UIView+ChameleonPrivate.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/UIView+ChameleonPrivate.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ChameleonFramework/UIColor+ChameleonPrivate.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/UIColor+ChameleonPrivate.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ChameleonFramework/UIImage+ChameleonPrivate.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/UIImage+ChameleonPrivate.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ChameleonFramework/UIView+ChameleonPrivate.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/UIView+ChameleonPrivate.h -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/AFNetworkActivityIndicatorManager.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ChameleonFramework/UIColor+ChameleonPrivate.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/UIColor+ChameleonPrivate.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ChameleonFramework/UIImage+ChameleonPrivate.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/UIImage+ChameleonPrivate.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ChameleonFramework/UIViewController+Chameleon.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/UIViewController+Chameleon.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/AFNetworkActivityIndicatorManager.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ChameleonFramework/UIViewController+Chameleon.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/UIViewController+Chameleon.h -------------------------------------------------------------------------------- /Pods/Headers/Private/AFNetworking/UIActivityIndicatorView+AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h -------------------------------------------------------------------------------- /Pods/Headers/Public/AFNetworking/UIActivityIndicatorView+AFNetworking.h: -------------------------------------------------------------------------------- 1 | ../../../AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h -------------------------------------------------------------------------------- /Pods/BButton/BButton/resources/FontAwesome.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/Pods/BButton/BButton/resources/FontAwesome.ttf -------------------------------------------------------------------------------- /Pods/Headers/Private/ChameleonFramework/UINavigationController+Chameleon.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/UINavigationController+Chameleon.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ChameleonFramework/UINavigationController+Chameleon.h: -------------------------------------------------------------------------------- 1 | ../../../ChameleonFramework/Pod/Classes/Objective-C/UINavigationController+Chameleon.h -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLResources/HLLPDFs/git-cheatsheet.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLResources/HLLPDFs/git-cheatsheet.pdf -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon.png -------------------------------------------------------------------------------- /Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/info.png -------------------------------------------------------------------------------- /Pods/Target Support Files/BButton/BButton-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_BButton : NSObject 3 | @end 4 | @implementation PodsDummy_BButton 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Masonry/Masonry-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Masonry : NSObject 3 | @end 4 | @implementation PodsDummy_Masonry 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/error.png -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-72.png -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-76.png -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon@2x.png -------------------------------------------------------------------------------- /Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/error@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/error@2x.png -------------------------------------------------------------------------------- /Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/error@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/error@3x.png -------------------------------------------------------------------------------- /Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/info@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/info@2x.png -------------------------------------------------------------------------------- /Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/info@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/info@3x.png -------------------------------------------------------------------------------- /Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/success.png -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-72@2x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-Small.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/AppIcon-076.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/AppIcon-076.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/AppIcon-120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/AppIcon-120.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/AppIcon-152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/AppIcon-152.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/AppIcon-167.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/AppIcon-167.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/AppIcon-180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/AppIcon-180.png -------------------------------------------------------------------------------- /Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/angle-mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/angle-mask.png -------------------------------------------------------------------------------- /Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/success@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/success@2x.png -------------------------------------------------------------------------------- /Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/success@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/success@3x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-Small-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-Small-40.png -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-Small-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-Small-50.png -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/iTunesArtwork.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/iTunesArtwork.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Email.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Email.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Export.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Export.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Mark-N.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Mark-N.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Mark-Y.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Mark-Y.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Print.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Print.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Thumbs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Thumbs.png -------------------------------------------------------------------------------- /Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/angle-mask@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/angle-mask@2x.png -------------------------------------------------------------------------------- /Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/angle-mask@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle/angle-mask@3x.png -------------------------------------------------------------------------------- /Pods/Target Support Files/AFNetworking/AFNetworking-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_AFNetworking : NSObject 3 | @end 4 | @implementation PodsDummy_AFNetworking 5 | @end 6 | -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/iTunesArtwork@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/Assets.xcassets/AppIcon.appiconset/iTunesArtwork@2x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Button-H.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Button-H.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Button-N.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Button-N.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Email@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Email@2x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Email@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Email@3x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Export@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Export@2x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Export@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Export@3x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Mark-N@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Mark-N@2x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Mark-N@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Mark-N@3x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Mark-Y@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Mark-Y@2x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Mark-Y@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Mark-Y@3x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Print@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Print@2x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Print@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Print@3x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Thumbs@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Thumbs@2x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Thumbs@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Thumbs@3x.png -------------------------------------------------------------------------------- /Pods/Target Support Files/MBProgressHUD/MBProgressHUD-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_MBProgressHUD : NSObject 3 | @end 4 | @implementation PodsDummy_MBProgressHUD 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/SVProgressHUD/SVProgressHUD-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_SVProgressHUD : NSObject 3 | @end 4 | @implementation PodsDummy_SVProgressHUD 5 | @end 6 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Button-H@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Button-H@2x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Button-H@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Button-H@3x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Button-N@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Button-N@2x.png -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Button-N@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hllGitHub/PDFViewAndDownload/HEAD/PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Graphics/Reader-Button-N@3x.png -------------------------------------------------------------------------------- /Pods/Target Support Files/ChameleonFramework/ChameleonFramework-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_ChameleonFramework : NSObject 3 | @end 4 | @implementation PodsDummy_ChameleonFramework 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-PDFViewAndDownload/Pods-PDFViewAndDownload-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_PDFViewAndDownload : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_PDFViewAndDownload 5 | @end 6 | -------------------------------------------------------------------------------- /PDFViewAndDownload.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | target 'PDFViewAndDownload' do 2 | 3 | pod 'Masonry', '~> 1.0.2' 4 | pod 'AFNetworking', '~> 2.6.0' 5 | pod 'BButton', '~> 4.0.2' 6 | pod 'MBProgressHUD', '~> 1.0.0' 7 | pod 'SVProgressHUD', '~> 2.0.3' 8 | pod 'ChameleonFramework', '~> 2.1.0' 9 | 10 | end 11 | -------------------------------------------------------------------------------- /Pods/Target Support Files/AFNetworking/AFNetworking-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | #ifndef TARGET_OS_IOS 6 | #define TARGET_OS_IOS TARGET_OS_IPHONE 7 | #endif 8 | 9 | #ifndef TARGET_OS_WATCH 10 | #define TARGET_OS_WATCH 0 11 | #endif 12 | -------------------------------------------------------------------------------- /Pods/Masonry/Masonry/MASLayoutConstraint.m: -------------------------------------------------------------------------------- 1 | // 2 | // MASLayoutConstraint.m 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 3/08/13. 6 | // Copyright (c) 2013 Jonas Budelmann. All rights reserved. 7 | // 8 | 9 | #import "MASLayoutConstraint.h" 10 | 11 | @implementation MASLayoutConstraint 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /PDFViewAndDownload.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLItems/HLLBasePart/BaseViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BaseViewController.h 3 | // PDFViewAndDownload 4 | // 5 | // Created by Jeffrey hu on 16/11/16. 6 | // Copyright © 2016年 Jeffrey hu. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface BaseViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLItems/HLPDFView/HLLView/HLLMenuCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // HLLMenuCell.h 3 | // PDFViewAndDownload 4 | // 5 | // Created by Jeffrey hu on 16/11/16. 6 | // Copyright © 2016年 Jeffrey hu. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface HLLMenuCell : UITableViewCell 12 | 13 | @property (nonatomic, copy) NSString *title; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLItems/HLLHomePart/HLLController/HLLTestColorViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // HLLTestColorViewController.h 3 | // PDFViewAndDownload 4 | // 5 | // Created by Jeffrey hu on 16/11/17. 6 | // Copyright © 2016年 Jeffrey hu. All rights reserved. 7 | // 8 | 9 | #import "BaseViewController.h" 10 | 11 | @interface HLLTestColorViewController : BaseViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonConstants.m: -------------------------------------------------------------------------------- 1 | // 2 | // Constants.m 3 | // Chameleon 4 | // 5 | // Created by Vicc Alexander on 6/4/15. 6 | // Copyright (c) 2015 Vicc Alexander. All rights reserved. 7 | // 8 | 9 | #import "ChameleonConstants.h" 10 | 11 | const UIStatusBarStyle UIStatusBarStyleContrast = 100; 12 | 13 | @implementation ChameleonConstants 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLItems/HLLPDFDownload/HLLController/HLLPDFDownloadViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // HLLPDFDownloadViewController.h 3 | // PDFViewAndDownload 4 | // 5 | // Created by Jeffrey hu on 16/11/16. 6 | // Copyright © 2016年 Jeffrey hu. All rights reserved. 7 | // 8 | 9 | #import "BaseViewController.h" 10 | 11 | @interface HLLPDFDownloadViewController : BaseViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/Pod/Classes/Objective-C/UIButton+Chameleon.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIButton+Chameleon.h 3 | // Chameleon 4 | // 5 | // Created by Vicc Alexander on 9/20/15. 6 | // Copyright © 2015 Vicc Alexander. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UIButton (Chameleon) 12 | 13 | - (void)setSubstituteFontName:(NSString *)name UI_APPEARANCE_SELECTOR; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/Pod/Classes/Objective-C/UILabel+Chameleon.h: -------------------------------------------------------------------------------- 1 | // 2 | // UILabel+Chameleon.h 3 | // Chameleon 4 | // 5 | // Created by Vicc Alexander on 9/20/15. 6 | // Copyright © 2015 Vicc Alexander. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UILabel (Chameleon) 12 | 13 | - (void)setSubstituteFontName:(NSString *)name UI_APPEARANCE_SELECTOR; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLItems/HLLMain/HLLAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // HLLAppDelegate.h 3 | // PDFViewAndDownload 4 | // 5 | // Created by Jeffrey hu on 16/11/16. 6 | // Copyright © 2016年 Jeffrey hu. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface HLLAppDelegate : UIResponder 12 | 13 | @property (nonatomic, strong) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Pods/SVProgressHUD/SVProgressHUD/SVRadialGradientLayer.h: -------------------------------------------------------------------------------- 1 | // 2 | // SVRadialGradientLayer.h 3 | // SVProgressHUD, https://github.com/SVProgressHUD/SVProgressHUD 4 | // 5 | // Copyright (c) 2014-2016 Tobias Tiemerding. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface SVRadialGradientLayer : CALayer 11 | 12 | @property (nonatomic) CGPoint gradientCenter; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLItems/HLPDFView/HLLController/HLLPDFViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // HLLPDFViewController.h 3 | // PDFViewAndDownload 4 | // 5 | // Created by Jeffrey hu on 16/11/16. 6 | // Copyright © 2016年 Jeffrey hu. All rights reserved. 7 | // 8 | 9 | /** 10 | * PDF展示、浏览 11 | */ 12 | 13 | #import "BaseViewController.h" 14 | 15 | @interface HLLPDFViewController : BaseViewController 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLItems/HLLHomePart/HLLController/HLLHomeViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // HLLHomeViewController.h 3 | // PDFViewAndDownload 4 | // 5 | // Created by Jeffrey hu on 16/11/16. 6 | // Copyright © 2016年 Jeffrey hu. All rights reserved. 7 | // 8 | 9 | /** 10 | * 首页展示 11 | */ 12 | 13 | #import "BaseViewController.h" 14 | 15 | @interface HLLHomeViewController : BaseViewController 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /PDFViewAndDownload/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // PDFViewAndDownload 4 | // 5 | // Created by Jeffrey hu on 16/11/16. 6 | // Copyright © 2016年 Jeffrey hu. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "HLLAppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([HLLAppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/Pod/Classes/Objective-C/UIView+ChameleonPrivate.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+ChameleonPrivate.h 3 | // Chameleon 4 | // 5 | // Created by Vicc Alexander on 6/4/15. 6 | // Copyright (c) 2015 Vicc Alexander. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UIView (ChameleonPrivate) 12 | 13 | - (BOOL)isTopViewInWindow; 14 | - (UIView *)findTopMostViewForPoint:(CGPoint)point; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pods/Masonry/Masonry/NSLayoutConstraint+MASDebugAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSLayoutConstraint+MASDebugAdditions.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 3/08/13. 6 | // Copyright (c) 2013 Jonas Budelmann. All rights reserved. 7 | // 8 | 9 | #import "MASUtilities.h" 10 | 11 | /** 12 | * makes debug and log output of NSLayoutConstraints more readable 13 | */ 14 | @interface NSLayoutConstraint (MASDebugAdditions) 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Build and Release Folders 2 | bin/ 3 | bin-debug/ 4 | bin-release/ 5 | [Oo]bj/ # FlashDevelop obj 6 | [Bb]in/ # FlashDevelop bin 7 | 8 | # Other files and folders 9 | .settings/ 10 | 11 | # Executables 12 | *.swf 13 | *.air 14 | *.ipa 15 | *.apk 16 | 17 | # Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties` 18 | # should NOT be excluded as they contain compiler settings and other important 19 | # information for Eclipse / Flash Builder. 20 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLItems/HLPDFView/HLLController/HLLWebViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // HLLWebViewController.h 3 | // PDFViewAndDownload 4 | // 5 | // Created by Jeffrey hu on 16/11/16. 6 | // Copyright © 2016年 Jeffrey hu. All rights reserved. 7 | // 8 | 9 | /** 10 | * WebView浏览 11 | */ 12 | 13 | #import "BaseViewController.h" 14 | 15 | @interface HLLWebViewController : BaseViewController 16 | 17 | @property (nonatomic, copy) NSString *webUrlString; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/Pod/Classes/Objective-C/UILabel+Chameleon.m: -------------------------------------------------------------------------------- 1 | // 2 | // UILabel+Chameleon.m 3 | // Chameleon 4 | // 5 | // Created by Vicc Alexander on 9/20/15. 6 | // Copyright © 2015 Vicc Alexander. All rights reserved. 7 | // 8 | 9 | #import "UILabel+Chameleon.h" 10 | 11 | @implementation UILabel (Chameleon) 12 | 13 | - (void)setSubstituteFontName:(NSString *)name UI_APPEARANCE_SELECTOR { 14 | 15 | self.font = [UIFont fontWithName:name size:self.font.pointSize]; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/Pod/Classes/Objective-C/UIAppearance+Swift.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIAppearance+Swift.h 3 | // Chameleon 4 | // 5 | // Created by Vicc Alexander on 11/26/15. 6 | // Copyright © 2015 Vicc Alexander. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UIView (UIViewAppearance_Swift) 12 | 13 | // @param containers An array of Class < UIAppearanceContainer > 14 | // http://stackoverflow.com/a/28765193 15 | + (instancetype)appearanceWhenContainedWithin:(NSArray *)containers; 16 | 17 | @end -------------------------------------------------------------------------------- /Pods/SVProgressHUD/SVProgressHUD/SVIndefiniteAnimatedView.h: -------------------------------------------------------------------------------- 1 | // 2 | // SVIndefiniteAnimatedView.h 3 | // SVProgressHUD, https://github.com/SVProgressHUD/SVProgressHUD 4 | // 5 | // Copyright (c) 2014-2016 Guillaume Campagna. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface SVIndefiniteAnimatedView : UIView 11 | 12 | @property (nonatomic, assign) CGFloat strokeThickness; 13 | @property (nonatomic, assign) CGFloat radius; 14 | @property (nonatomic, strong) UIColor *strokeColor; 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonConstants.h: -------------------------------------------------------------------------------- 1 | // 2 | // Constants.h 3 | // Chameleon 4 | // 5 | // Created by Vicc Alexander on 6/4/15. 6 | // Copyright (c) 2015 Vicc Alexander. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | /** 13 | * A contrasting status bar, intended for use on any backgrounds. 14 | * 15 | * @since 2.0 16 | */ 17 | extern const UIStatusBarStyle UIStatusBarStyleContrast; 18 | 19 | @interface ChameleonConstants : NSObject 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pods/SVProgressHUD/SVProgressHUD/SVProgressAnimatedView.h: -------------------------------------------------------------------------------- 1 | // 2 | // SVProgressAnimatedView.h 3 | // SVProgressHUD, https://github.com/SVProgressHUD/SVProgressHUD 4 | // 5 | // Copyright (c) 2016 Tobias Tiemerding. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface SVProgressAnimatedView : UIView 11 | 12 | @property (nonatomic, assign) CGFloat radius; 13 | @property (nonatomic, assign) CGFloat strokeThickness; 14 | @property (nonatomic, strong) UIColor *strokeColor; 15 | @property (nonatomic, assign) CGFloat strokeEnd; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/Pod/Classes/Objective-C/UIImage+ChameleonPrivate.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIImage+ChameleonPrivate.h 3 | // Chameleon 4 | // 5 | // Created by Vicc Alexander on 6/8/15. 6 | // Copyright (c) 2015 Vicc Alexander. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UIImage (ChameleonPrivate) 12 | 13 | #pragma mark - Class Methods 14 | 15 | + (UIImage *)imageWithImage:(UIImage *)image scaledToSize:(CGSize)newSize; 16 | 17 | #pragma mark - Instance Methods 18 | 19 | - (UIImage *)imageScaledToSize:(CGSize)newSize; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pods/Masonry/Masonry/MASLayoutConstraint.h: -------------------------------------------------------------------------------- 1 | // 2 | // MASLayoutConstraint.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 3/08/13. 6 | // Copyright (c) 2013 Jonas Budelmann. All rights reserved. 7 | // 8 | 9 | #import "MASUtilities.h" 10 | 11 | /** 12 | * When you are debugging or printing the constraints attached to a view this subclass 13 | * makes it easier to identify which constraints have been created via Masonry 14 | */ 15 | @interface MASLayoutConstraint : NSLayoutConstraint 16 | 17 | /** 18 | * a key to associate with this constraint 19 | */ 20 | @property (nonatomic, strong) id mas_key; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/Pod/Classes/Objective-C/UIButton+Chameleon.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIButton+Chameleon.m 3 | // Chameleon 4 | // 5 | // Created by Vicc Alexander on 9/20/15. 6 | // Copyright © 2015 Vicc Alexander. All rights reserved. 7 | // 8 | 9 | #import "UIButton+Chameleon.h" 10 | 11 | @implementation UIButton (Chameleon) 12 | 13 | #pragma GCC diagnostic push 14 | #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 15 | 16 | - (void)setSubstituteFontName:(NSString *)name UI_APPEARANCE_SELECTOR { 17 | 18 | self.font = [UIFont fontWithName:name size:self.font.pointSize]; 19 | } 20 | 21 | #pragma GCC diagnostic pop 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pods/Masonry/Masonry/MASCompositeConstraint.h: -------------------------------------------------------------------------------- 1 | // 2 | // MASCompositeConstraint.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 21/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASConstraint.h" 10 | #import "MASUtilities.h" 11 | 12 | /** 13 | * A group of MASConstraint objects 14 | */ 15 | @interface MASCompositeConstraint : MASConstraint 16 | 17 | /** 18 | * Creates a composite with a predefined array of children 19 | * 20 | * @param children child MASConstraints 21 | * 22 | * @return a composite constraint 23 | */ 24 | - (id)initWithChildren:(NSArray *)children; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PDFViewAndDownload 2 | iOS开发 PDF文件的浏览与加载 3 | 4 | ## 简要说明 5 | 在实际的开发过程中,我们会遇到一些需要显示PDF的场景,比如一些表单,比如官方文件(为了保证原有的格式显示正常,通常会做成PDF来展示),这里我们来讨论一个展示PDF的方式。 6 | 包括本地加载与网络加载,另外附带了PDF文件的几种下载方式,供大家参考。 7 | * UIWebView 这是一种通用的方式,对于本地的PDF展示也是如此,只要把上面的fileName换成本地的文件地址即可。但是这个方式有个很大的弊端,就是只有最基本的展示,不能放大缩小,也没有其他的相关交互,当然,混编除外,可是有必要这样做吗?对于已经处理好的PDF而且仅仅最基本展示,这种方式最方便。 8 | * 利用CGContextDrawPDFPage,这种方式我并不熟悉,所以这里只是提一下,有兴趣的朋友可以自己找一下相关资料。 9 | * QLPreviewController 这是系统提供的预览方式,其实展示起来效果也差不多,支持放大缩小的手势,还自带系统分享功能。 10 | * 使用强大的第三方[Reader(vfr)](https://github.com/vfr/Reader),这个很强大,功能很多,也提供了一些自定义的控制常量。诸如`READER_FLAT_UI`的。想要扩展的话,可以自己改写ReadViewController文件 11 | 12 | 具体内容请参见源码 13 | 14 | 有任何问题可以一起讨论,联系我:hllfj922@gmail.com 15 | 16 | -------------------------------------------------------------------------------- /PDFViewAndDownloadTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /PDFViewAndDownloadUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /PDFViewAndDownload/Config.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Config.pch 3 | // PDFViewAndDownload 4 | // 5 | // Created by Jeffrey hu on 16/11/16. 6 | // Copyright © 2016年 Jeffrey hu. All rights reserved. 7 | // 8 | 9 | #ifndef Config_pch 10 | #define Config_pch 11 | 12 | // Include any system framework and library headers here that should be included in all compilation units. 13 | // You will also need to set the Prefix Header build setting of one or more of your targets to reference this file. 14 | 15 | #endif /* Config_pch */ 16 | 17 | #ifdef __OBJC__ 18 | 19 | #define MAS_SHORTHAND 20 | #import 21 | #import 22 | 23 | #endif 24 | 25 | #define PDF_URL @"https://www.tutorialspoint.com/ios/ios_tutorial.pdf" 26 | #define PDF_FILE_PATH [[NSBundle mainBundle] pathForResource:@"git-cheatsheet" ofType:@"pdf"] 27 | -------------------------------------------------------------------------------- /Pods/Target Support Files/BButton/BButton.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/BButton 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/BButton" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/BButton" "${PODS_ROOT}/Headers/Public/ChameleonFramework" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/Masonry" "${PODS_ROOT}/Headers/Public/SVProgressHUD" 4 | OTHER_LDFLAGS = -framework "CoreGraphics" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Masonry/Masonry.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/Masonry 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/Masonry" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/BButton" "${PODS_ROOT}/Headers/Public/ChameleonFramework" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/Masonry" "${PODS_ROOT}/Headers/Public/SVProgressHUD" 4 | OTHER_LDFLAGS = -framework "Foundation" -framework "UIKit" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Pods/Target Support Files/SVProgressHUD/SVProgressHUD.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/SVProgressHUD 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/SVProgressHUD" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/BButton" "${PODS_ROOT}/Headers/Public/ChameleonFramework" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/Masonry" "${PODS_ROOT}/Headers/Public/SVProgressHUD" 4 | OTHER_LDFLAGS = -framework "QuartzCore" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Pods/Target Support Files/MBProgressHUD/MBProgressHUD.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/MBProgressHUD 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/MBProgressHUD" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/BButton" "${PODS_ROOT}/Headers/Public/ChameleonFramework" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/Masonry" "${PODS_ROOT}/Headers/Public/SVProgressHUD" 4 | OTHER_LDFLAGS = -framework "CoreGraphics" -framework "QuartzCore" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /PDFViewAndDownload.xcodeproj/xcuserdata/Jeffrey.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | PDFViewAndDownload.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 004518871DDC01C900882606 16 | 17 | primary 18 | 19 | 20 | 004518A01DDC01C900882606 21 | 22 | primary 23 | 24 | 25 | 004518AB1DDC01CA00882606 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /Pods/Target Support Files/ChameleonFramework/ChameleonFramework.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/ChameleonFramework 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/ChameleonFramework" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/BButton" "${PODS_ROOT}/Headers/Public/ChameleonFramework" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/Masonry" "${PODS_ROOT}/Headers/Public/SVProgressHUD" 4 | OTHER_LDFLAGS = -framework "CoreGraphics" -framework "QuartzCore" -framework "UIKit" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Pods/Masonry/Masonry/Masonry.h: -------------------------------------------------------------------------------- 1 | // 2 | // Masonry.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 20/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for Masonry. 12 | FOUNDATION_EXPORT double MasonryVersionNumber; 13 | 14 | //! Project version string for Masonry. 15 | FOUNDATION_EXPORT const unsigned char MasonryVersionString[]; 16 | 17 | #import "MASUtilities.h" 18 | #import "View+MASAdditions.h" 19 | #import "View+MASShorthandAdditions.h" 20 | #import "ViewController+MASAdditions.h" 21 | #import "NSArray+MASAdditions.h" 22 | #import "NSArray+MASShorthandAdditions.h" 23 | #import "MASConstraint.h" 24 | #import "MASCompositeConstraint.h" 25 | #import "MASViewAttribute.h" 26 | #import "MASViewConstraint.h" 27 | #import "MASConstraintMaker.h" 28 | #import "MASLayoutConstraint.h" 29 | #import "NSLayoutConstraint+MASDebugAdditions.h" 30 | -------------------------------------------------------------------------------- /Pods/Target Support Files/AFNetworking/AFNetworking.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/AFNetworking 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/AFNetworking" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/BButton" "${PODS_ROOT}/Headers/Public/ChameleonFramework" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/Masonry" "${PODS_ROOT}/Headers/Public/SVProgressHUD" 4 | OTHER_LDFLAGS = -framework "CoreGraphics" -framework "MobileCoreServices" -framework "Security" -framework "SystemConfiguration" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /PDFViewAndDownload.xcworkspace/xcuserdata/Jeffrey.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/Pod/Classes/Objective-C/UINavigationController+Chameleon.h: -------------------------------------------------------------------------------- 1 | // 2 | // UINavigationController+Chameleon.h 3 | // ChameleonDemo 4 | // 5 | // Created by Vicc Alexander on 6/4/15. 6 | // Copyright (c) 2015 Vicc Alexander. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ChameleonEnums.h" 11 | 12 | @interface UINavigationController (Chameleon) 13 | 14 | /** 15 | * Sets the status bar style for the specified @c UINavigationController and all its child controllers. 16 | * 17 | * @param statusBarStyle The style of the device's status bar. 18 | * 19 | * @note Chameleon introduces a new @c statusBarStyle called @c UIStatusBarStyleContrast. 20 | * 21 | * @since 2.0 22 | */ 23 | - (void)setStatusBarStyle:(UIStatusBarStyle)statusBarStyle; 24 | 25 | /** 26 | * Hides the hairline view at the bottom of a navigation bar. The default value is @c NO. 27 | * 28 | * @since 2.0.3 29 | */ 30 | @property (nonatomic, assign) BOOL hidesNavigationBarHairline; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLItems/HLLMain/HLLAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // HLLAppDelegate.m 3 | // PDFViewAndDownload 4 | // 5 | // Created by Jeffrey hu on 16/11/16. 6 | // Copyright © 2016年 Jeffrey hu. All rights reserved. 7 | // 8 | 9 | #import "HLLAppDelegate.h" 10 | #import "HLLHomeViewController.h" 11 | #import "HLLTestColorViewController.h" 12 | 13 | @implementation HLLAppDelegate 14 | 15 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 16 | [[UINavigationBar appearance] setBackgroundColor:FlatPowderBlueDark]; 17 | [UINavigationBar appearance].tintColor = [UIColor orangeColor]; 18 | 19 | HLLHomeViewController *homeVC = [HLLHomeViewController new]; 20 | UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:homeVC]; 21 | self.window.rootViewController = nav; 22 | 23 | // self.window.rootViewController = [HLLTestColorViewController new]; 24 | 25 | return YES; 26 | } 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/Pod/Classes/Objective-C/UIColor+ChameleonPrivate.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIColor+ChameleonPrivate.h 3 | // Chameleon 4 | // 5 | // Created by Vicc Alexander on 6/6/15. 6 | // Copyright (c) 2015 Vicc Alexander. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface UIColor (ChameleonPrivate) 13 | 14 | @property (nonatomic, readwrite) NSUInteger count; 15 | 16 | #pragma mark - Class Methods 17 | 18 | + (UIColor *)colorFromImage:(UIImage *)image atPoint:(CGPoint)point; 19 | 20 | - (UIColor *)colorWithMinimumSaturation:(CGFloat)saturation; 21 | 22 | #pragma mark - Instance Methods 23 | 24 | - (BOOL)isDistinct:(UIColor *)color; 25 | 26 | - (BOOL)getValueForX:(CGFloat *)X 27 | valueForY:(CGFloat *)Y 28 | valueForZ:(CGFloat *)Z 29 | alpha:(CGFloat *)alpha; 30 | 31 | - (BOOL)getLightness:(CGFloat *)L 32 | valueForA:(CGFloat *)A 33 | valueForB:(CGFloat *)B 34 | alpha:(CGFloat *)alpha; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/Pod/Classes/Objective-C/Chameleon.h: -------------------------------------------------------------------------------- 1 | // 2 | // Chameleon.h 3 | // Chameleon 4 | // 5 | // Created by Vicc Alexander on 9/24/15. 6 | // Copyright © 2015 Vicc Alexander. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for Chameleon. 12 | FOUNDATION_EXPORT double ChameleonVersionNumber; 13 | 14 | //! Project version string for Chameleon. 15 | FOUNDATION_EXPORT const unsigned char ChameleonVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | #import "Chameleon_.h" 20 | 21 | #import "UIButton+Chameleon.h" 22 | #import "UILabel+Chameleon.h" 23 | #import "UIColor+ChameleonPrivate.h" 24 | #import "UIImage+ChameleonPrivate.h" 25 | #import "UIView+ChameleonPrivate.h" 26 | #import "UIAppearance+Swift.h" 27 | 28 | #import "NSArray+Chameleon.h" 29 | #import "UIColor+Chameleon.h" 30 | #import "UINavigationController+Chameleon.h" 31 | #import "UIViewController+Chameleon.h" 32 | -------------------------------------------------------------------------------- /Pods/SVProgressHUD/SVProgressHUD/SVRadialGradientLayer.m: -------------------------------------------------------------------------------- 1 | // 2 | // SVRadialGradientLayer.m 3 | // SVProgressHUD, https://github.com/SVProgressHUD/SVProgressHUD 4 | // 5 | // Copyright (c) 2014-2016 Tobias Tiemerding. All rights reserved. 6 | // 7 | 8 | #import "SVRadialGradientLayer.h" 9 | 10 | @implementation SVRadialGradientLayer 11 | 12 | - (void)drawInContext:(CGContextRef)context { 13 | size_t locationsCount = 2; 14 | CGFloat locations[2] = {0.0f, 1.0f}; 15 | CGFloat colors[8] = {0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.75f}; 16 | CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); 17 | CGGradientRef gradient = CGGradientCreateWithColorComponents(colorSpace, colors, locations, locationsCount); 18 | CGColorSpaceRelease(colorSpace); 19 | 20 | float radius = MIN(self.bounds.size.width , self.bounds.size.height); 21 | CGContextDrawRadialGradient (context, gradient, self.gradientCenter, 0, self.gradientCenter, radius, kCGGradientDrawsAfterEndLocation); 22 | CGGradientRelease(gradient); 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Pods/Masonry/Masonry/ViewController+MASAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewController+MASAdditions.h 3 | // Masonry 4 | // 5 | // Created by Craig Siemens on 2015-06-23. 6 | // 7 | // 8 | 9 | #import "MASUtilities.h" 10 | #import "MASConstraintMaker.h" 11 | #import "MASViewAttribute.h" 12 | 13 | #ifdef MAS_VIEW_CONTROLLER 14 | 15 | @interface MAS_VIEW_CONTROLLER (MASAdditions) 16 | 17 | /** 18 | * following properties return a new MASViewAttribute with appropriate UILayoutGuide and NSLayoutAttribute 19 | */ 20 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuide; 21 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuide; 22 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideTop; 23 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideBottom; 24 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideTop; 25 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideBottom; 26 | 27 | 28 | @end 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/Pod/Classes/Objective-C/ChameleonEnums.h: -------------------------------------------------------------------------------- 1 | // 2 | // ChameleonEnums.h 3 | // Chameleon 4 | // 5 | // Created by Vicc Alexander on 6/8/15. 6 | // Copyright (c) 2015 Vicc Alexander. All rights reserved. 7 | // 8 | 9 | #ifndef Chameleon_ChameleonEnums_h 10 | #define Chameleon_ChameleonEnums_h 11 | 12 | /** 13 | * Specifies how text-based UI elements and other content such as switch knobs, should be colored. 14 | * 15 | * @since 2.0 16 | */ 17 | 18 | typedef NS_ENUM(NSUInteger, UIContentStyle) { 19 | /** 20 | * Automatically chooses and colors text-based elements with the shade that best contrasts its @c backgroundColor. 21 | * 22 | * @since 2.0 23 | */ 24 | UIContentStyleContrast, 25 | /** 26 | * Colors text-based elements using a light shade. 27 | * 28 | * @since 2.0 29 | */ 30 | UIContentStyleLight, 31 | /** 32 | * Colors text-based elements using a light shade. 33 | * 34 | * @since 2.0 35 | */ 36 | UIContentStyleDark 37 | }; 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLItems/HLLBasePart/BaseViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // BaseViewController.m 3 | // PDFViewAndDownload 4 | // 5 | // Created by Jeffrey hu on 16/11/16. 6 | // Copyright © 2016年 Jeffrey hu. All rights reserved. 7 | // 8 | 9 | #import "BaseViewController.h" 10 | 11 | @interface BaseViewController () 12 | 13 | @end 14 | 15 | @implementation BaseViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | 20 | self.view.backgroundColor = [UIColor whiteColor]; 21 | self.view.backgroundColor = FlatMint; 22 | } 23 | 24 | - (void)didReceiveMemoryWarning { 25 | [super didReceiveMemoryWarning]; 26 | // Dispose of any resources that can be recreated. 27 | } 28 | 29 | /* 30 | #pragma mark - Navigation 31 | 32 | // In a storyboard-based application, you will often want to do a little preparation before navigation 33 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { 34 | // Get the new view controller using [segue destinationViewController]. 35 | // Pass the selected object to the new view controller. 36 | } 37 | */ 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 hllGitHub 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Pods/MBProgressHUD/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright © 2009-2016 Matej Bukovinski 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /PDFViewAndDownloadTests/PDFViewAndDownloadTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // PDFViewAndDownloadTests.m 3 | // PDFViewAndDownloadTests 4 | // 5 | // Created by Jeffrey hu on 16/11/16. 6 | // Copyright © 2016年 Jeffrey hu. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface PDFViewAndDownloadTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation PDFViewAndDownloadTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/Pod/Classes/Objective-C/UIAppearance+Swift.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIAppearance+Swift.m 3 | // Chameleon 4 | // 5 | // Created by Vicc Alexander on 11/26/15. 6 | // Copyright © 2015 Vicc Alexander. All rights reserved. 7 | // 8 | 9 | #import "UIAppearance+Swift.h" 10 | 11 | @implementation UIView (UIViewAppearance_Swift) 12 | 13 | + (instancetype)appearanceWhenContainedWithin: (NSArray *)containers { 14 | 15 | NSUInteger count = containers.count; 16 | NSAssert(count <= 10, @"The count of containers greater than 10 is not supported."); 17 | 18 | return [self appearanceWhenContainedIn: 19 | count > 0 ? containers[0] : nil, 20 | count > 1 ? containers[1] : nil, 21 | count > 2 ? containers[2] : nil, 22 | count > 3 ? containers[3] : nil, 23 | count > 4 ? containers[4] : nil, 24 | count > 5 ? containers[5] : nil, 25 | count > 6 ? containers[6] : nil, 26 | count > 7 ? containers[7] : nil, 27 | count > 8 ? containers[8] : nil, 28 | count > 9 ? containers[9] : nil, 29 | nil]; 30 | } 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Pods/Masonry/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011-2012 Masonry Team - https://github.com/Masonry 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /Pods/BButton/BButton/Classes/NSString+FontAwesome.m: -------------------------------------------------------------------------------- 1 | // 2 | // * The Font Awesome font is licensed under the SIL Open Font License 3 | // http://scripts.sil.org/OFL 4 | // 5 | // 6 | // * Font Awesome CSS, LESS, and SASS files are licensed under the MIT License 7 | // http://opensource.org/licenses/mit-license.html 8 | // 9 | // 10 | // * The Font Awesome pictograms are licensed under the CC BY 3.0 License 11 | // http://creativecommons.org/licenses/by/3.0 12 | // 13 | // 14 | // * Attribution is no longer required in Font Awesome 3.0, but much appreciated: 15 | // "Font Awesome by Dave Gandy - http://fortawesome.github.com/Font-Awesome" 16 | // 17 | // 18 | // ----------------------------------------- 19 | // Edited and refactored by Jesse Squires on 2 April, 2013. 20 | // 21 | // http://github.com/jessesquires/BButton 22 | // 23 | // http://hexedbits.com 24 | // 25 | 26 | #import "NSString+FontAwesome.h" 27 | 28 | NSString * const kFontAwesomeFont = @"FontAwesome"; 29 | 30 | @implementation NSString (FontAwesome) 31 | 32 | + (NSString *)fa_stringForFontAwesomeIcon:(FAIcon)icon 33 | { 34 | return [NSString stringWithFormat:@"%C", icon]; 35 | } 36 | 37 | @end -------------------------------------------------------------------------------- /Pods/AFNetworking/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/LICENSE.md: -------------------------------------------------------------------------------- 1 | ##The MIT License (MIT) 2 | 3 | > Copyright (c) 2014-2015 Vicc Alexander 4 | 5 | > Permission is hereby granted, free of charge, to any person obtaining a copy 6 | > of this software and associated documentation files (the "Software"), to deal 7 | > in the Software without restriction, including without limitation the rights 8 | > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | > copies of the Software, and to permit persons to whom the Software is 10 | > furnished to do so, subject to the following conditions: 11 | 12 | > The above copyright notice and this permission notice shall be included in all 13 | > copies or substantial portions of the Software. 14 | 15 | > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | > SOFTWARE. 22 | -------------------------------------------------------------------------------- /Pods/Masonry/Masonry/NSArray+MASShorthandAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSArray+MASShorthandAdditions.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 22/07/13. 6 | // Copyright (c) 2013 Jonas Budelmann. All rights reserved. 7 | // 8 | 9 | #import "NSArray+MASAdditions.h" 10 | 11 | #ifdef MAS_SHORTHAND 12 | 13 | /** 14 | * Shorthand array additions without the 'mas_' prefixes, 15 | * only enabled if MAS_SHORTHAND is defined 16 | */ 17 | @interface NSArray (MASShorthandAdditions) 18 | 19 | - (NSArray *)makeConstraints:(void(^)(MASConstraintMaker *make))block; 20 | - (NSArray *)updateConstraints:(void(^)(MASConstraintMaker *make))block; 21 | - (NSArray *)remakeConstraints:(void(^)(MASConstraintMaker *make))block; 22 | 23 | @end 24 | 25 | @implementation NSArray (MASShorthandAdditions) 26 | 27 | - (NSArray *)makeConstraints:(void(^)(MASConstraintMaker *))block { 28 | return [self mas_makeConstraints:block]; 29 | } 30 | 31 | - (NSArray *)updateConstraints:(void(^)(MASConstraintMaker *))block { 32 | return [self mas_updateConstraints:block]; 33 | } 34 | 35 | - (NSArray *)remakeConstraints:(void(^)(MASConstraintMaker *))block { 36 | return [self mas_remakeConstraints:block]; 37 | } 38 | 39 | @end 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /Pods/SVProgressHUD/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011-2016 Sam Vermette, Tobias Tiemerding and contributors. 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | A different license may apply to other resources included in this package, 25 | including Freepik Icons. Please consult their 26 | respective headers for the terms of their individual licenses. 27 | -------------------------------------------------------------------------------- /Pods/Masonry/Masonry/MASViewAttribute.m: -------------------------------------------------------------------------------- 1 | // 2 | // MASAttribute.m 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 21/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASViewAttribute.h" 10 | 11 | @implementation MASViewAttribute 12 | 13 | - (id)initWithView:(MAS_VIEW *)view layoutAttribute:(NSLayoutAttribute)layoutAttribute { 14 | self = [self initWithView:view item:view layoutAttribute:layoutAttribute]; 15 | return self; 16 | } 17 | 18 | - (id)initWithView:(MAS_VIEW *)view item:(id)item layoutAttribute:(NSLayoutAttribute)layoutAttribute { 19 | self = [super init]; 20 | if (!self) return nil; 21 | 22 | _view = view; 23 | _item = item; 24 | _layoutAttribute = layoutAttribute; 25 | 26 | return self; 27 | } 28 | 29 | - (BOOL)isSizeAttribute { 30 | return self.layoutAttribute == NSLayoutAttributeWidth 31 | || self.layoutAttribute == NSLayoutAttributeHeight; 32 | } 33 | 34 | - (BOOL)isEqual:(MASViewAttribute *)viewAttribute { 35 | if ([viewAttribute isKindOfClass:self.class]) { 36 | return self.view == viewAttribute.view 37 | && self.layoutAttribute == viewAttribute.layoutAttribute; 38 | } 39 | return [super isEqual:viewAttribute]; 40 | } 41 | 42 | - (NSUInteger)hash { 43 | return MAS_NSUINTROTATE([self.view hash], MAS_NSUINT_BIT / 2) ^ self.layoutAttribute; 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Pods/Masonry/Masonry/MASViewAttribute.h: -------------------------------------------------------------------------------- 1 | // 2 | // MASAttribute.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 21/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASUtilities.h" 10 | 11 | /** 12 | * An immutable tuple which stores the view and the related NSLayoutAttribute. 13 | * Describes part of either the left or right hand side of a constraint equation 14 | */ 15 | @interface MASViewAttribute : NSObject 16 | 17 | /** 18 | * The view which the reciever relates to. Can be nil if item is not a view. 19 | */ 20 | @property (nonatomic, weak, readonly) MAS_VIEW *view; 21 | 22 | /** 23 | * The item which the reciever relates to. 24 | */ 25 | @property (nonatomic, weak, readonly) id item; 26 | 27 | /** 28 | * The attribute which the reciever relates to 29 | */ 30 | @property (nonatomic, assign, readonly) NSLayoutAttribute layoutAttribute; 31 | 32 | /** 33 | * Convenience initializer. 34 | */ 35 | - (id)initWithView:(MAS_VIEW *)view layoutAttribute:(NSLayoutAttribute)layoutAttribute; 36 | 37 | /** 38 | * The designated initializer. 39 | */ 40 | - (id)initWithView:(MAS_VIEW *)view item:(id)item layoutAttribute:(NSLayoutAttribute)layoutAttribute; 41 | 42 | /** 43 | * Determine whether the layoutAttribute is a size attribute 44 | * 45 | * @return YES if layoutAttribute is equal to NSLayoutAttributeWidth or NSLayoutAttributeHeight 46 | */ 47 | - (BOOL)isSizeAttribute; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /PDFViewAndDownloadUITests/PDFViewAndDownloadUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // PDFViewAndDownloadUITests.m 3 | // PDFViewAndDownloadUITests 4 | // 5 | // Created by Jeffrey hu on 16/11/16. 6 | // Copyright © 2016年 Jeffrey hu. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface PDFViewAndDownloadUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation PDFViewAndDownloadUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Pods/Masonry/Masonry/ViewController+MASAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewController+MASAdditions.m 3 | // Masonry 4 | // 5 | // Created by Craig Siemens on 2015-06-23. 6 | // 7 | // 8 | 9 | #import "ViewController+MASAdditions.h" 10 | 11 | #ifdef MAS_VIEW_CONTROLLER 12 | 13 | @implementation MAS_VIEW_CONTROLLER (MASAdditions) 14 | 15 | - (MASViewAttribute *)mas_topLayoutGuide { 16 | return [[MASViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeBottom]; 17 | } 18 | - (MASViewAttribute *)mas_topLayoutGuideTop { 19 | return [[MASViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeTop]; 20 | } 21 | - (MASViewAttribute *)mas_topLayoutGuideBottom { 22 | return [[MASViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeBottom]; 23 | } 24 | 25 | - (MASViewAttribute *)mas_bottomLayoutGuide { 26 | return [[MASViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeTop]; 27 | } 28 | - (MASViewAttribute *)mas_bottomLayoutGuideTop { 29 | return [[MASViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeTop]; 30 | } 31 | - (MASViewAttribute *)mas_bottomLayoutGuideBottom { 32 | return [[MASViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeBottom]; 33 | } 34 | 35 | 36 | 37 | @end 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /Pods/Masonry/Masonry/MASViewConstraint.h: -------------------------------------------------------------------------------- 1 | // 2 | // MASConstraint.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 20/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASViewAttribute.h" 10 | #import "MASConstraint.h" 11 | #import "MASLayoutConstraint.h" 12 | #import "MASUtilities.h" 13 | 14 | /** 15 | * A single constraint. 16 | * Contains the attributes neccessary for creating a NSLayoutConstraint and adding it to the appropriate view 17 | */ 18 | @interface MASViewConstraint : MASConstraint 19 | 20 | /** 21 | * First item/view and first attribute of the NSLayoutConstraint 22 | */ 23 | @property (nonatomic, strong, readonly) MASViewAttribute *firstViewAttribute; 24 | 25 | /** 26 | * Second item/view and second attribute of the NSLayoutConstraint 27 | */ 28 | @property (nonatomic, strong, readonly) MASViewAttribute *secondViewAttribute; 29 | 30 | /** 31 | * initialises the MASViewConstraint with the first part of the equation 32 | * 33 | * @param firstViewAttribute view.mas_left, view.mas_width etc. 34 | * 35 | * @return a new view constraint 36 | */ 37 | - (id)initWithFirstViewAttribute:(MASViewAttribute *)firstViewAttribute; 38 | 39 | /** 40 | * Returns all MASViewConstraints installed with this view as a first item. 41 | * 42 | * @param view A view to retrieve constraints for. 43 | * 44 | * @return An array of MASViewConstraints. 45 | */ 46 | + (NSArray *)installedConstraintsForView:(MAS_VIEW *)view; 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /Pods/AFNetworking/UIKit+AFNetworking/UIImage+AFNetworking.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIImage+AFNetworking.h 3 | // 4 | // 5 | // Created by Paulo Ferreira on 08/07/15. 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) 26 | 27 | #import 28 | 29 | @interface UIImage (AFNetworking) 30 | 31 | + (UIImage*) safeImageWithData:(NSData*)data; 32 | 33 | @end 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderContentTile.h: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderContentTile.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-07-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | #import 28 | 29 | @interface ReaderContentTile : CATiledLayer 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/Pod/Classes/Objective-C/UIView+ChameleonPrivate.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+ChameleonPrivate.m 3 | // Chameleon 4 | // 5 | // Created by Vicc Alexander on 6/4/15. 6 | // Copyright (c) 2015 Vicc Alexander. All rights reserved. 7 | // 8 | 9 | #import "UIView+ChameleonPrivate.h" 10 | 11 | @implementation UIView (ChameleonPrivate) 12 | 13 | - (BOOL)isTopViewInWindow { 14 | 15 | if (!self.window) { 16 | return NO; 17 | } 18 | 19 | CGPoint centerPointInSelf = CGPointMake(CGRectGetMidX(self.bounds), 20 | CGRectGetMidY(self.bounds)); 21 | 22 | CGPoint centerPointOfSelfInWindow = [self convertPoint:centerPointInSelf 23 | toView:self.window]; 24 | 25 | UIView *view = [self.window findTopMostViewForPoint:centerPointOfSelfInWindow]; 26 | BOOL isTopMost = view == self || [view isDescendantOfView:self]; 27 | 28 | return isTopMost; 29 | } 30 | 31 | - (UIView *)findTopMostViewForPoint:(CGPoint)point { 32 | 33 | for (int i = (int)self.subviews.count - 1; i >= 0; i--) { 34 | 35 | UIView *subview = self.subviews[i]; 36 | 37 | if (!subview.hidden && CGRectContainsPoint(subview.frame, point) && subview.alpha > 0.01) { 38 | CGPoint pointConverted = [self convertPoint:point toView:subview]; 39 | return [subview findTopMostViewForPoint:pointConverted]; 40 | } 41 | } 42 | 43 | return self; 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderConstants.m: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderConstants.m 3 | // Reader v2.8.7 4 | // 5 | // Created by Julius Oklamcak on 2011-07-01. 6 | // Copyright © 2011-2016 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import "ReaderConstants.h" 27 | 28 | static NSString *const kReaderCopyrightNotice = @"Reader v2.x.y • Copyright © 2011-2016 Julius Oklamcak. All rights reserved."; 29 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/UIXToolbarView.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIXToolbarView.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-09-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | 28 | @interface UIXToolbarView : UIView 29 | 30 | @end 31 | 32 | #pragma mark - 33 | 34 | // 35 | // UIXToolbarShadow class interface 36 | // 37 | 38 | @interface UIXToolbarShadow : UIView 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Pods/BButton/BButton/Classes/UIColor+BButton.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by Mathieu Bolard on 31/07/12. 3 | // Copyright (c) 2012 Mathieu Bolard. All rights reserved. 4 | // 5 | // https://github.com/mattlawer/BButton 6 | // 7 | // 8 | // BButton is licensed under the MIT license 9 | // http://opensource.org/licenses/MIT 10 | // 11 | // 12 | // ----------------------------------------- 13 | // Edited and refactored by Jesse Squires on 2 April, 2013. 14 | // 15 | // http://github.com/jessesquires/BButton 16 | // 17 | // http://hexedbits.com 18 | // 19 | 20 | #import 21 | 22 | @interface UIColor (BButton) 23 | 24 | #pragma mark - Custom colors 25 | 26 | + (UIColor *)bb_defaultColorV2; 27 | + (UIColor *)bb_defaultColorV3; 28 | 29 | + (UIColor *)bb_primaryColorV2; 30 | + (UIColor *)bb_primaryColorV3; 31 | 32 | + (UIColor *)bb_infoColorV2; 33 | + (UIColor *)bb_infoColorV3; 34 | 35 | + (UIColor *)bb_successColorV2; 36 | + (UIColor *)bb_successColorV3; 37 | 38 | + (UIColor *)bb_warningColorV2; 39 | + (UIColor *)bb_warningColorV3; 40 | 41 | + (UIColor *)bb_dangerColorV2; 42 | + (UIColor *)bb_dangerColorV3; 43 | 44 | + (UIColor *)bb_inverseColorV2; 45 | + (UIColor *)bb_inverseColorV3; 46 | 47 | + (UIColor *)bb_twitterColor; 48 | + (UIColor *)bb_facebookColor; 49 | + (UIColor *)bb_purpleBButtonColor; 50 | + (UIColor *)bb_grayBButtonColor; 51 | 52 | #pragma mark - Utilities 53 | 54 | - (UIColor *)bb_desaturatedColorToPercentSaturation:(CGFloat)percent; 55 | - (UIColor *)bb_lightenColorWithValue:(CGFloat)value; 56 | - (UIColor *)bb_darkenColorWithValue:(CGFloat)value; 57 | - (BOOL)bb_isLightColor; 58 | 59 | @end -------------------------------------------------------------------------------- /Pods/BButton/LICENSE: -------------------------------------------------------------------------------- 1 | BButton - copyright (c) 2012, Mathieu Bolard, Jesse Squires. All rights reserved. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 4 | associated documentation files (the "Software"), to deal in the Software without restriction, including 5 | without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 6 | copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 7 | following conditions: 8 | 9 | The above copyright notice and this permission notice shall be included in 10 | all copies or substantial portions of the Software. 11 | 12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 13 | LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 14 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 15 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE 16 | OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 17 | 18 | 19 | 20 | Font Awesome by Dave Gandy - http://fortawesome.github.com/Font-Awesome 21 | 22 | The Font Awesome font is licensed under the SIL Open Font License: http://scripts.sil.org/OFL 23 | 24 | Font Awesome CSS, LESS, and SASS files are licensed under the MIT License: http://opensource.org/licenses/mit-license.html 25 | 26 | The Font Awesome pictograms are licensed under the CC BY 3.0 License: http://creativecommons.org/licenses/by/3.0 27 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderThumbFetch.h: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderThumbFetch.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-09-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | 28 | #import "ReaderThumbQueue.h" 29 | 30 | @class ReaderThumbRequest; 31 | 32 | @interface ReaderThumbFetch : ReaderThumbOperation 33 | 34 | - (instancetype)initWithRequest:(ReaderThumbRequest *)options; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderThumbRender.h: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderThumbRender.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-09-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | 28 | #import "ReaderThumbQueue.h" 29 | 30 | @class ReaderThumbRequest; 31 | 32 | @interface ReaderThumbRender : ReaderThumbOperation 33 | 34 | - (instancetype)initWithRequest:(ReaderThumbRequest *)options; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-PDFViewAndDownload/Pods-PDFViewAndDownload.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/BButton" "${PODS_ROOT}/Headers/Public/ChameleonFramework" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/Masonry" "${PODS_ROOT}/Headers/Public/SVProgressHUD" 4 | LIBRARY_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/AFNetworking" "$PODS_CONFIGURATION_BUILD_DIR/BButton" "$PODS_CONFIGURATION_BUILD_DIR/ChameleonFramework" "$PODS_CONFIGURATION_BUILD_DIR/MBProgressHUD" "$PODS_CONFIGURATION_BUILD_DIR/Masonry" "$PODS_CONFIGURATION_BUILD_DIR/SVProgressHUD" 5 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/AFNetworking" -isystem "${PODS_ROOT}/Headers/Public/BButton" -isystem "${PODS_ROOT}/Headers/Public/ChameleonFramework" -isystem "${PODS_ROOT}/Headers/Public/MBProgressHUD" -isystem "${PODS_ROOT}/Headers/Public/Masonry" -isystem "${PODS_ROOT}/Headers/Public/SVProgressHUD" 6 | OTHER_LDFLAGS = $(inherited) -ObjC -l"AFNetworking" -l"BButton" -l"ChameleonFramework" -l"MBProgressHUD" -l"Masonry" -l"SVProgressHUD" -framework "CoreGraphics" -framework "Foundation" -framework "MobileCoreServices" -framework "QuartzCore" -framework "Security" -framework "SystemConfiguration" -framework "UIKit" 7 | PODS_BUILD_DIR = $BUILD_DIR 8 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-PDFViewAndDownload/Pods-PDFViewAndDownload.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/BButton" "${PODS_ROOT}/Headers/Public/ChameleonFramework" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/Masonry" "${PODS_ROOT}/Headers/Public/SVProgressHUD" 4 | LIBRARY_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/AFNetworking" "$PODS_CONFIGURATION_BUILD_DIR/BButton" "$PODS_CONFIGURATION_BUILD_DIR/ChameleonFramework" "$PODS_CONFIGURATION_BUILD_DIR/MBProgressHUD" "$PODS_CONFIGURATION_BUILD_DIR/Masonry" "$PODS_CONFIGURATION_BUILD_DIR/SVProgressHUD" 5 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/AFNetworking" -isystem "${PODS_ROOT}/Headers/Public/BButton" -isystem "${PODS_ROOT}/Headers/Public/ChameleonFramework" -isystem "${PODS_ROOT}/Headers/Public/MBProgressHUD" -isystem "${PODS_ROOT}/Headers/Public/Masonry" -isystem "${PODS_ROOT}/Headers/Public/SVProgressHUD" 6 | OTHER_LDFLAGS = $(inherited) -ObjC -l"AFNetworking" -l"BButton" -l"ChameleonFramework" -l"MBProgressHUD" -l"Masonry" -l"SVProgressHUD" -framework "CoreGraphics" -framework "Foundation" -framework "MobileCoreServices" -framework "QuartzCore" -framework "Security" -framework "SystemConfiguration" -framework "UIKit" 7 | PODS_BUILD_DIR = $BUILD_DIR 8 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLItems/HLPDFView/HLLController/HLLWebViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // HLLWebViewController.m 3 | // PDFViewAndDownload 4 | // 5 | // Created by Jeffrey hu on 16/11/16. 6 | // Copyright © 2016年 Jeffrey hu. All rights reserved. 7 | // 8 | 9 | #import "HLLWebViewController.h" 10 | #import 11 | 12 | @interface HLLWebViewController () 13 | 14 | @property (nonatomic, strong) UIWebView *webView; 15 | 16 | @end 17 | 18 | @implementation HLLWebViewController 19 | 20 | - (void)viewDidLoad { 21 | [super viewDidLoad]; 22 | 23 | [self setupSubViews]; 24 | } 25 | 26 | - (void)didReceiveMemoryWarning { 27 | [super didReceiveMemoryWarning]; 28 | // Dispose of any resources that can be recreated. 29 | } 30 | 31 | #pragma mark - Initialize data and view 32 | - (void)setupSubViews { 33 | [self.view addSubview:self.webView]; 34 | [self.webView mas_makeConstraints:^(MASConstraintMaker *make) { 35 | make.top.bottom.left.and.right.offset(0); 36 | }]; 37 | 38 | NSURL *url = [NSURL URLWithString:self.webUrlString]; 39 | NSURLRequest *request = [NSURLRequest requestWithURL:url]; 40 | // 设置缩放 41 | [self.webView setScalesPageToFit:YES]; 42 | [self.webView loadRequest:request]; 43 | [SVProgressHUD show]; 44 | } 45 | 46 | - (UIWebView *)webView { 47 | if (_webView == nil) { 48 | _webView = [[UIWebView alloc]init]; 49 | _webView.backgroundColor = [UIColor whiteColor]; 50 | _webView.delegate= self; 51 | } 52 | return _webView; 53 | } 54 | 55 | #pragma mark - UIWebViewDelegate 56 | - (void)webViewDidFinishLoad:(UIWebView *)webView { 57 | NSLog(@"加载完成"); 58 | [SVProgressHUD dismiss]; 59 | } 60 | 61 | @end 62 | -------------------------------------------------------------------------------- /Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AFNetworking (2.6.3): 3 | - AFNetworking/NSURLConnection (= 2.6.3) 4 | - AFNetworking/NSURLSession (= 2.6.3) 5 | - AFNetworking/Reachability (= 2.6.3) 6 | - AFNetworking/Security (= 2.6.3) 7 | - AFNetworking/Serialization (= 2.6.3) 8 | - AFNetworking/UIKit (= 2.6.3) 9 | - AFNetworking/NSURLConnection (2.6.3): 10 | - AFNetworking/Reachability 11 | - AFNetworking/Security 12 | - AFNetworking/Serialization 13 | - AFNetworking/NSURLSession (2.6.3): 14 | - AFNetworking/Reachability 15 | - AFNetworking/Security 16 | - AFNetworking/Serialization 17 | - AFNetworking/Reachability (2.6.3) 18 | - AFNetworking/Security (2.6.3) 19 | - AFNetworking/Serialization (2.6.3) 20 | - AFNetworking/UIKit (2.6.3): 21 | - AFNetworking/NSURLConnection 22 | - AFNetworking/NSURLSession 23 | - BButton (4.0.2) 24 | - ChameleonFramework (2.1.0): 25 | - ChameleonFramework/Default (= 2.1.0) 26 | - ChameleonFramework/Default (2.1.0) 27 | - Masonry (1.0.2) 28 | - MBProgressHUD (1.0.0) 29 | - SVProgressHUD (2.0.3) 30 | 31 | DEPENDENCIES: 32 | - AFNetworking (~> 2.6.0) 33 | - BButton (~> 4.0.2) 34 | - ChameleonFramework (~> 2.1.0) 35 | - Masonry (~> 1.0.2) 36 | - MBProgressHUD (~> 1.0.0) 37 | - SVProgressHUD (~> 2.0.3) 38 | 39 | SPEC CHECKSUMS: 40 | AFNetworking: cb8d14a848e831097108418f5d49217339d4eb60 41 | BButton: ab0f2ed3b998ae73c5188b57d270d81e4a1eeb27 42 | ChameleonFramework: d21a3cc247abfe5e37609a283a8238b03575cf64 43 | Masonry: 7c429b56da9d4ee0bbb3ed77a5ea710d6a5df39e 44 | MBProgressHUD: 4890f671c94e8a0f3cf959aa731e9de2f036d71a 45 | SVProgressHUD: b0830714205bea1317ea1a2ebc71e5633af334d4 46 | 47 | PODFILE CHECKSUM: 0bc94b7da2d370bdb3ba8380663b4eb98a6f97a1 48 | 49 | COCOAPODS: 1.1.1 50 | -------------------------------------------------------------------------------- /Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AFNetworking (2.6.3): 3 | - AFNetworking/NSURLConnection (= 2.6.3) 4 | - AFNetworking/NSURLSession (= 2.6.3) 5 | - AFNetworking/Reachability (= 2.6.3) 6 | - AFNetworking/Security (= 2.6.3) 7 | - AFNetworking/Serialization (= 2.6.3) 8 | - AFNetworking/UIKit (= 2.6.3) 9 | - AFNetworking/NSURLConnection (2.6.3): 10 | - AFNetworking/Reachability 11 | - AFNetworking/Security 12 | - AFNetworking/Serialization 13 | - AFNetworking/NSURLSession (2.6.3): 14 | - AFNetworking/Reachability 15 | - AFNetworking/Security 16 | - AFNetworking/Serialization 17 | - AFNetworking/Reachability (2.6.3) 18 | - AFNetworking/Security (2.6.3) 19 | - AFNetworking/Serialization (2.6.3) 20 | - AFNetworking/UIKit (2.6.3): 21 | - AFNetworking/NSURLConnection 22 | - AFNetworking/NSURLSession 23 | - BButton (4.0.2) 24 | - ChameleonFramework (2.1.0): 25 | - ChameleonFramework/Default (= 2.1.0) 26 | - ChameleonFramework/Default (2.1.0) 27 | - Masonry (1.0.2) 28 | - MBProgressHUD (1.0.0) 29 | - SVProgressHUD (2.0.3) 30 | 31 | DEPENDENCIES: 32 | - AFNetworking (~> 2.6.0) 33 | - BButton (~> 4.0.2) 34 | - ChameleonFramework (~> 2.1.0) 35 | - Masonry (~> 1.0.2) 36 | - MBProgressHUD (~> 1.0.0) 37 | - SVProgressHUD (~> 2.0.3) 38 | 39 | SPEC CHECKSUMS: 40 | AFNetworking: cb8d14a848e831097108418f5d49217339d4eb60 41 | BButton: ab0f2ed3b998ae73c5188b57d270d81e4a1eeb27 42 | ChameleonFramework: d21a3cc247abfe5e37609a283a8238b03575cf64 43 | Masonry: 7c429b56da9d4ee0bbb3ed77a5ea710d6a5df39e 44 | MBProgressHUD: 4890f671c94e8a0f3cf959aa731e9de2f036d71a 45 | SVProgressHUD: b0830714205bea1317ea1a2ebc71e5633af334d4 46 | 47 | PODFILE CHECKSUM: 0bc94b7da2d370bdb3ba8380663b4eb98a6f97a1 48 | 49 | COCOAPODS: 1.1.1 50 | -------------------------------------------------------------------------------- /PDFViewAndDownload/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderThumbView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderThumbView.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-09-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | 28 | @interface ReaderThumbView : UIView 29 | { 30 | @protected // Instance variables 31 | 32 | UIImageView *imageView; 33 | } 34 | 35 | @property (atomic, strong, readwrite) NSOperation *operation; 36 | 37 | @property (nonatomic, assign, readwrite) NSUInteger targetTag; 38 | 39 | - (void)showImage:(UIImage *)image; 40 | 41 | - (void)showTouched:(BOOL)touched; 42 | 43 | - (void)reuse; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLItems/HLPDFView/HLLView/HLLMenuCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // HLLMenuCell.m 3 | // PDFViewAndDownload 4 | // 5 | // Created by Jeffrey hu on 16/11/16. 6 | // Copyright © 2016年 Jeffrey hu. All rights reserved. 7 | // 8 | 9 | #import "HLLMenuCell.h" 10 | 11 | @interface HLLMenuCell () 12 | 13 | @property (nonatomic, strong) UILabel *titleLabel; 14 | 15 | @end 16 | 17 | @implementation HLLMenuCell 18 | 19 | - (void)awakeFromNib { 20 | [super awakeFromNib]; 21 | // Initialization code 22 | } 23 | 24 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated { 25 | [super setSelected:selected animated:animated]; 26 | 27 | // Configure the view for the selected state 28 | } 29 | 30 | - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { 31 | self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; 32 | if (self) { 33 | [self initView]; 34 | self.backgroundColor = FlatWhite; 35 | } 36 | return self; 37 | } 38 | 39 | // 初始化视图 40 | - (void)initView { 41 | self.titleLabel = [UILabel new]; 42 | [self.contentView addSubview:self.titleLabel]; 43 | self.titleLabel.font = [UIFont systemFontOfSize:15.f]; 44 | self.titleLabel.textColor = [UIColor colorWithRed:0.3 green:0.6 blue:0.7 alpha:1.0]; 45 | } 46 | 47 | - (void)layoutSubviews { 48 | [super layoutSubviews]; 49 | // 布局 50 | [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) { 51 | make.centerY.equalTo(@0); 52 | make.width.equalTo(@300); 53 | make.height.equalTo(@24); 54 | make.left.equalTo(@15); 55 | }]; 56 | } 57 | 58 | #pragma mark - set 59 | - (void)setTitle:(NSString *)title { 60 | _title = title; 61 | self.titleLabel.text = title; 62 | } 63 | 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderConstants.h: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderConstants.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-07-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #if !__has_feature(objc_arc) 27 | #error ARC (-fobjc-arc) is required to build this code. 28 | #endif 29 | 30 | #import 31 | 32 | #define READER_FLAT_UI TRUE 33 | #define READER_SHOW_SHADOWS TRUE 34 | #define READER_ENABLE_THUMBS TRUE 35 | #define READER_DISABLE_RETINA FALSE 36 | #define READER_ENABLE_PREVIEW TRUE 37 | #define READER_DISABLE_IDLE FALSE 38 | #define READER_STANDALONE FALSE 39 | #define READER_BOOKMARKS TRUE 40 | -------------------------------------------------------------------------------- /PDFViewAndDownload/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | PDFReader 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | NSAppTransportSecurity 34 | 35 | NSAllowsArbitraryLoads 36 | 37 | 38 | UISupportedInterfaceOrientations 39 | 40 | UIInterfaceOrientationPortrait 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | UISupportedInterfaceOrientations~ipad 45 | 46 | UIInterfaceOrientationPortrait 47 | UIInterfaceOrientationPortraitUpsideDown 48 | UIInterfaceOrientationLandscapeLeft 49 | UIInterfaceOrientationLandscapeRight 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /Pods/AFNetworking/UIKit+AFNetworking/UIKit+AFNetworking.h: -------------------------------------------------------------------------------- 1 | // UIKit+AFNetworking.h 2 | // 3 | // Copyright (c) 2013 AFNetworking (http://afnetworking.com/) 4 | // 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | #if TARGET_OS_IOS 24 | #import 25 | 26 | #ifndef _UIKIT_AFNETWORKING_ 27 | #define _UIKIT_AFNETWORKING_ 28 | 29 | #import "AFNetworkActivityIndicatorManager.h" 30 | 31 | #import "UIActivityIndicatorView+AFNetworking.h" 32 | #import "UIAlertView+AFNetworking.h" 33 | #import "UIButton+AFNetworking.h" 34 | #import "UIImageView+AFNetworking.h" 35 | #import "UIProgressView+AFNetworking.h" 36 | #import "UIRefreshControl+AFNetworking.h" 37 | #import "UIWebView+AFNetworking.h" 38 | #endif /* _UIKIT_AFNETWORKING_ */ 39 | #endif 40 | -------------------------------------------------------------------------------- /PDFViewAndDownload/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/CGPDFDocument.h: -------------------------------------------------------------------------------- 1 | // 2 | // CGPDFDocument.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-07-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | #import 28 | 29 | // 30 | // Custom CGPDFDocument[...] functions 31 | // 32 | 33 | CGPDFDocumentRef CGPDFDocumentCreateUsingUrl(CFURLRef theURL, NSString *password); 34 | 35 | CGPDFDocumentRef CGPDFDocumentCreateUsingData(CGDataProviderRef dataProvider, NSString *password); 36 | 37 | BOOL CGPDFDocumentUrlNeedsPassword(CFURLRef theURL, NSString *password); 38 | 39 | BOOL CGPDFDocumentDataNeedsPassword(CGDataProviderRef dataProvider, NSString *password); 40 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderViewController.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-07-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | 28 | #import "ReaderDocument.h" 29 | 30 | @class ReaderViewController; 31 | 32 | @protocol ReaderViewControllerDelegate 33 | 34 | @optional // Delegate protocols 35 | 36 | - (void)dismissReaderViewController:(ReaderViewController *)viewController; 37 | 38 | @end 39 | 40 | @interface ReaderViewController : UIViewController 41 | 42 | @property (nonatomic, weak, readwrite) id delegate; 43 | 44 | - (instancetype)initWithReaderDocument:(ReaderDocument *)object; 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ThumbsMainToolbar.h: -------------------------------------------------------------------------------- 1 | // 2 | // ThumbsMainToolbar.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-09-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | 28 | #import "UIXToolbarView.h" 29 | 30 | @class ThumbsMainToolbar; 31 | 32 | @protocol ThumbsMainToolbarDelegate 33 | 34 | @required // Delegate protocols 35 | 36 | - (void)tappedInToolbar:(ThumbsMainToolbar *)toolbar doneButton:(UIButton *)button; 37 | - (void)tappedInToolbar:(ThumbsMainToolbar *)toolbar showControl:(UISegmentedControl *)control; 38 | 39 | @end 40 | 41 | @interface ThumbsMainToolbar : UIXToolbarView 42 | 43 | @property (nonatomic, weak, readwrite) id delegate; 44 | 45 | - (instancetype)initWithFrame:(CGRect)frame title:(NSString *)title; 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/xcuserdata/Jeffrey.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | AFNetworking.xcscheme 8 | 9 | isShown 10 | 11 | 12 | BButton.xcscheme 13 | 14 | isShown 15 | 16 | 17 | ChameleonFramework.xcscheme 18 | 19 | isShown 20 | 21 | 22 | MBProgressHUD.xcscheme 23 | 24 | isShown 25 | 26 | 27 | Masonry.xcscheme 28 | 29 | isShown 30 | 31 | 32 | Pods-PDFViewAndDownload.xcscheme 33 | 34 | isShown 35 | 36 | 37 | SVProgressHUD.xcscheme 38 | 39 | isShown 40 | 41 | 42 | 43 | SuppressBuildableAutocreation 44 | 45 | 19BB9863CDA9B3B96C2950F00D94877C 46 | 47 | primary 48 | 49 | 50 | 1BA768812D140672F5547321D31130A5 51 | 52 | primary 53 | 54 | 55 | 586F2DFA9BDCC6675C2546793A69E5CC 56 | 57 | primary 58 | 59 | 60 | 6AE0F56B1011E52A1CC1C3D345230F46 61 | 62 | primary 63 | 64 | 65 | 9DC8D9E02903E93BD0B2FEC9D846EA20 66 | 67 | primary 68 | 69 | 70 | AFAFB55453D161D2BB5CFB30C68A54D5 71 | 72 | primary 73 | 74 | 75 | D57F6DD7CBDE11E457971075B0805982 76 | 77 | primary 78 | 79 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderThumbQueue.h: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderThumbQueue.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-09-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | 28 | @interface ReaderThumbQueue : NSObject 29 | 30 | + (ReaderThumbQueue *)sharedInstance; 31 | 32 | - (void)addLoadOperation:(NSOperation *)operation; 33 | 34 | - (void)addWorkOperation:(NSOperation *)operation; 35 | 36 | - (void)cancelOperationsWithGUID:(NSString *)guid; 37 | 38 | - (void)cancelAllOperations; 39 | 40 | @end 41 | 42 | #pragma mark - 43 | 44 | // 45 | // ReaderThumbOperation class interface 46 | // 47 | 48 | @interface ReaderThumbOperation : NSOperation 49 | 50 | @property (nonatomic, strong, readonly) NSString *guid; 51 | 52 | - (instancetype)initWithGUID:(NSString *)guid; 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderContentPage.h: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderContentPage.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-07-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | 28 | @interface ReaderContentPage : UIView 29 | 30 | - (instancetype)initWithURL:(NSURL *)fileURL page:(NSInteger)page password:(NSString *)phrase; 31 | 32 | - (id)processSingleTap:(UITapGestureRecognizer *)recognizer; 33 | 34 | @end 35 | 36 | #pragma mark - 37 | 38 | // 39 | // ReaderDocumentLink class interface 40 | // 41 | 42 | @interface ReaderDocumentLink : NSObject 43 | 44 | @property (nonatomic, assign, readonly) CGRect rect; 45 | 46 | @property (nonatomic, assign, readonly) CGPDFDictionaryRef dictionary; 47 | 48 | + (instancetype)newWithRect:(CGRect)linkRect dictionary:(CGPDFDictionaryRef)linkDictionary; 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderDocumentOutline.h: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderDocumentOutline.m 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2012-09-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | 28 | @interface ReaderDocumentOutline : NSObject 29 | 30 | + (NSArray *)outlineFromFileURL:(NSURL *)fileURL password:(NSString *)phrase; 31 | 32 | + (void)logDocumentOutlineArray:(NSArray *)array; 33 | 34 | @end 35 | 36 | @interface DocumentOutlineEntry : NSObject 37 | 38 | + (instancetype)newWithTitle:(NSString *)title target:(id)target level:(NSInteger)level; 39 | 40 | @property (nonatomic, assign, readonly) NSInteger level; 41 | @property (nonatomic, strong, readwrite) NSMutableArray *children; 42 | @property (nonatomic, strong, readonly) NSString *title; 43 | @property (nonatomic, strong, readonly) id target; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /Pods/Masonry/Masonry/MASConstraint+Private.h: -------------------------------------------------------------------------------- 1 | // 2 | // MASConstraint+Private.h 3 | // Masonry 4 | // 5 | // Created by Nick Tymchenko on 29/04/14. 6 | // Copyright (c) 2014 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASConstraint.h" 10 | 11 | @protocol MASConstraintDelegate; 12 | 13 | 14 | @interface MASConstraint () 15 | 16 | /** 17 | * Whether or not to check for an existing constraint instead of adding constraint 18 | */ 19 | @property (nonatomic, assign) BOOL updateExisting; 20 | 21 | /** 22 | * Usually MASConstraintMaker but could be a parent MASConstraint 23 | */ 24 | @property (nonatomic, weak) id delegate; 25 | 26 | /** 27 | * Based on a provided value type, is equal to calling: 28 | * NSNumber - setOffset: 29 | * NSValue with CGPoint - setPointOffset: 30 | * NSValue with CGSize - setSizeOffset: 31 | * NSValue with MASEdgeInsets - setInsets: 32 | */ 33 | - (void)setLayoutConstantWithValue:(NSValue *)value; 34 | 35 | @end 36 | 37 | 38 | @interface MASConstraint (Abstract) 39 | 40 | /** 41 | * Sets the constraint relation to given NSLayoutRelation 42 | * returns a block which accepts one of the following: 43 | * MASViewAttribute, UIView, NSValue, NSArray 44 | * see readme for more details. 45 | */ 46 | - (MASConstraint * (^)(id, NSLayoutRelation))equalToWithRelation; 47 | 48 | /** 49 | * Override to set a custom chaining behaviour 50 | */ 51 | - (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute; 52 | 53 | @end 54 | 55 | 56 | @protocol MASConstraintDelegate 57 | 58 | /** 59 | * Notifies the delegate when the constraint needs to be replaced with another constraint. For example 60 | * A MASViewConstraint may turn into a MASCompositeConstraint when an array is passed to one of the equality blocks 61 | */ 62 | - (void)constraint:(MASConstraint *)constraint shouldBeReplacedWithConstraint:(MASConstraint *)replacementConstraint; 63 | 64 | - (MASConstraint *)constraint:(MASConstraint *)constraint addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute; 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /Pods/AFNetworking/AFNetworking/AFNetworking.h: -------------------------------------------------------------------------------- 1 | // AFNetworking.h 2 | // 3 | // Copyright (c) 2013 AFNetworking (http://afnetworking.com/) 4 | // 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | #import 24 | #import 25 | 26 | #ifndef _AFNETWORKING_ 27 | #define _AFNETWORKING_ 28 | 29 | #import "AFURLRequestSerialization.h" 30 | #import "AFURLResponseSerialization.h" 31 | #import "AFSecurityPolicy.h" 32 | #if !TARGET_OS_WATCH 33 | #import "AFNetworkReachabilityManager.h" 34 | #import "AFURLConnectionOperation.h" 35 | #import "AFHTTPRequestOperation.h" 36 | #import "AFHTTPRequestOperationManager.h" 37 | #endif 38 | 39 | #if ( ( defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1090) || \ 40 | ( defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000 ) || \ 41 | TARGET_OS_WATCH ) 42 | #import "AFURLSessionManager.h" 43 | #import "AFHTTPSessionManager.h" 44 | #endif 45 | 46 | #endif /* _AFNETWORKING_ */ 47 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderThumbCache.h: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderThumbCache.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-09-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | 28 | #import "ReaderThumbRequest.h" 29 | 30 | @interface ReaderThumbCache : NSObject 31 | 32 | + (ReaderThumbCache *)sharedInstance; 33 | 34 | + (void)touchThumbCacheWithGUID:(NSString *)guid; 35 | 36 | + (void)createThumbCacheWithGUID:(NSString *)guid; 37 | 38 | + (void)removeThumbCacheWithGUID:(NSString *)guid; 39 | 40 | + (void)purgeThumbCachesOlderThan:(NSTimeInterval)age; 41 | 42 | + (NSString *)thumbCachePathForGUID:(NSString *)guid; 43 | 44 | - (id)thumbRequest:(ReaderThumbRequest *)request priority:(BOOL)priority; 45 | 46 | - (void)setObject:(UIImage *)image forKey:(NSString *)key; 47 | 48 | - (void)removeObjectForKey:(NSString *)key; 49 | 50 | - (void)removeNullForKey:(NSString *)key; 51 | 52 | - (void)removeAllObjects; 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderThumbRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderThumbRequest.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-09-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | 28 | @class ReaderThumbView; 29 | 30 | @interface ReaderThumbRequest : NSObject 31 | 32 | @property (nonatomic, strong, readonly) NSURL *fileURL; 33 | @property (nonatomic, strong, readonly) NSString *guid; 34 | @property (nonatomic, strong, readonly) NSString *password; 35 | @property (nonatomic, strong, readonly) NSString *cacheKey; 36 | @property (nonatomic, strong, readonly) NSString *thumbName; 37 | @property (nonatomic, strong, readwrite) ReaderThumbView *thumbView; 38 | @property (nonatomic, assign, readonly) NSUInteger targetTag; 39 | @property (nonatomic, assign, readonly) NSInteger thumbPage; 40 | @property (nonatomic, assign, readonly) CGSize thumbSize; 41 | @property (nonatomic, assign, readonly) CGFloat scale; 42 | 43 | + (instancetype)newForView:(ReaderThumbView *)view fileURL:(NSURL *)url password:(NSString *)phrase guid:(NSString *)guid page:(NSInteger)page size:(CGSize)size; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ThumbsViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ThumbsViewController.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-09-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | 28 | #import "ThumbsMainToolbar.h" 29 | #import "ReaderThumbsView.h" 30 | 31 | @class ReaderDocument; 32 | @class ThumbsViewController; 33 | 34 | @protocol ThumbsViewControllerDelegate 35 | 36 | @required // Delegate protocols 37 | 38 | - (void)thumbsViewController:(ThumbsViewController *)viewController gotoPage:(NSInteger)page; 39 | 40 | - (void)dismissThumbsViewController:(ThumbsViewController *)viewController; 41 | 42 | @end 43 | 44 | @interface ThumbsViewController : UIViewController 45 | 46 | @property (nonatomic, weak, readwrite) id delegate; 47 | 48 | - (instancetype)initWithReaderDocument:(ReaderDocument *)object; 49 | 50 | @end 51 | 52 | #pragma mark - 53 | 54 | // 55 | // ThumbsPageThumb class interface 56 | // 57 | 58 | @interface ThumbsPageThumb : ReaderThumbView 59 | 60 | - (CGSize)maximumContentSize; 61 | 62 | - (void)showText:(NSString *)text; 63 | 64 | - (void)showBookmark:(BOOL)show; 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/Pod/Classes/Objective-C/UIViewController+Chameleon.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewController+Chameleon.h 3 | // Chameleon 4 | // 5 | // Created by Vicc Alexander on 6/4/15. 6 | // Copyright (c) 2015 Vicc Alexander. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ChameleonEnums.h" 11 | 12 | @interface UIViewController (Chameleon) 13 | 14 | /** 15 | * Sets the color theme for the specified view controller using a primary color and the specified content style. 16 | * 17 | * @param primaryColor The primary color. 18 | * @param contentStyle The contentStyle. 19 | * 20 | * @since 2.0 21 | */ 22 | - (void)setThemeUsingPrimaryColor:(UIColor *)primaryColor 23 | withContentStyle:(UIContentStyle)contentStyle; 24 | 25 | /** 26 | * Sets the color theme for the specified view controller using a primary color, secondary color, and the specified content style. 27 | * 28 | * @param primaryColor The primary color. 29 | * @param secondaryColor The secondary color. 30 | * @param contentStyle The contentStyle. 31 | * 32 | * @since 2.0 33 | */ 34 | - (void)setThemeUsingPrimaryColor:(UIColor *)primaryColor 35 | withSecondaryColor:(UIColor *)secondaryColor 36 | andContentStyle:(UIContentStyle)contentStyle; 37 | 38 | /** 39 | * Sets the color theme for the specified view controller using a primary color, secondary color, font name, and the specified content style. 40 | * 41 | * @param primaryColor The primary color. 42 | * @param secondaryColor The secondary color. 43 | * @param fontName The main font to use for all text-based elements. 44 | * @param contentStyle The contentStyle. 45 | * 46 | * @since 2.0 47 | */ 48 | - (void)setThemeUsingPrimaryColor:(UIColor *)primaryColor 49 | withSecondaryColor:(UIColor *)secondaryColor 50 | usingFontName:(NSString *)fontName 51 | andContentStyle:(UIContentStyle)contentStyle; 52 | 53 | /** 54 | * Sets the status bar style for the specified @c UIViewController and all its child controllers. 55 | * 56 | * @param statusBarStyle The style of the device's status bar. 57 | * 58 | * @note Chameleon introduces a new @c statusBarStyle called @c UIStatusBarStyleContrast. 59 | * 60 | * @since 2.0 61 | */ 62 | - (void)setStatusBarStyle:(UIStatusBarStyle)statusBarStyle; 63 | 64 | @end 65 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/xcuserdata/Jeffrey.xcuserdatad/xcschemes/BButton.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 45 | 46 | 52 | 53 | 55 | 56 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/xcuserdata/Jeffrey.xcuserdatad/xcschemes/Masonry.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 45 | 46 | 52 | 53 | 55 | 56 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/xcuserdata/Jeffrey.xcuserdatad/xcschemes/AFNetworking.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 45 | 46 | 52 | 53 | 55 | 56 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/xcuserdata/Jeffrey.xcuserdatad/xcschemes/MBProgressHUD.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 45 | 46 | 52 | 53 | 55 | 56 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/xcuserdata/Jeffrey.xcuserdatad/xcschemes/SVProgressHUD.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 45 | 46 | 52 | 53 | 55 | 56 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/xcuserdata/Jeffrey.xcuserdatad/xcschemes/ChameleonFramework.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 45 | 46 | 52 | 53 | 55 | 56 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/Pod/Classes/Objective-C/Chameleon_.h: -------------------------------------------------------------------------------- 1 | // 2 | // ChameleonInternal.h 3 | // Chameleon 4 | // 5 | // Created by Vicc Alexander on 6/4/15. 6 | // Copyright (c) 2015 Vicc Alexander. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | #import "ChameleonConstants.h" 13 | #import "ChameleonEnums.h" 14 | #import "ChameleonMacros.h" 15 | 16 | #import "NSArray+Chameleon.h" 17 | #import "UIColor+Chameleon.h" 18 | #import "UINavigationController+Chameleon.h" 19 | #import "UIViewController+Chameleon.h" 20 | 21 | @interface Chameleon : NSObject 22 | 23 | #pragma mark - Global Theming 24 | 25 | /** 26 | * Set a global theme using a primary color and the specified content style. 27 | * 28 | * @param primaryColor The primary color to theme all controllers with. 29 | * @param contentStyle The contentStyle. 30 | * 31 | * @note By default the secondary color will be a darker shade of the specified primary color. 32 | * 33 | * @since 2.0 34 | */ 35 | + (void)setGlobalThemeUsingPrimaryColor:(UIColor *)primaryColor 36 | withContentStyle:(UIContentStyle)contentStyle; 37 | 38 | /** 39 | * Set a global theme using a primary color, secondary color, and the specified content style. 40 | * 41 | * @param primaryColor The primary color to theme all controllers with. 42 | * @param secondaryColor The secondary color to theme all controllers with. 43 | * @param contentStyle The contentStyle. 44 | * 45 | * @since 2.0 46 | */ 47 | + (void)setGlobalThemeUsingPrimaryColor:(UIColor *)primaryColor 48 | withSecondaryColor:(UIColor *)secondaryColor 49 | andContentStyle:(UIContentStyle)contentStyle; 50 | 51 | /** 52 | * Set a global theme using a primary color, secondary color, font name, and the specified content style. 53 | * 54 | * @param primaryColor The primary color to theme all controllers with. 55 | * @param secondaryColor The secondary color to theme all controllers with. 56 | * @param fontName The default font for all text-based UI elements. 57 | * @param contentStyle The contentStyle. 58 | * 59 | * @since 2.0 60 | */ 61 | + (void)setGlobalThemeUsingPrimaryColor:(UIColor *)primaryColor 62 | withSecondaryColor:(UIColor *)secondaryColor 63 | usingFontName:(NSString *)fontName 64 | andContentStyle:(UIContentStyle)contentStyle; 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/xcuserdata/Jeffrey.xcuserdatad/xcschemes/Pods-PDFViewAndDownload.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 45 | 46 | 52 | 53 | 55 | 56 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderMainToolbar.h: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderMainToolbar.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-07-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | 28 | #import "UIXToolbarView.h" 29 | 30 | @class ReaderMainToolbar; 31 | @class ReaderDocument; 32 | 33 | @protocol ReaderMainToolbarDelegate 34 | 35 | @required // Delegate protocols 36 | 37 | - (void)tappedInToolbar:(ReaderMainToolbar *)toolbar doneButton:(UIButton *)button; 38 | - (void)tappedInToolbar:(ReaderMainToolbar *)toolbar thumbsButton:(UIButton *)button; 39 | - (void)tappedInToolbar:(ReaderMainToolbar *)toolbar exportButton:(UIButton *)button; 40 | - (void)tappedInToolbar:(ReaderMainToolbar *)toolbar printButton:(UIButton *)button; 41 | - (void)tappedInToolbar:(ReaderMainToolbar *)toolbar emailButton:(UIButton *)button; 42 | - (void)tappedInToolbar:(ReaderMainToolbar *)toolbar markButton:(UIButton *)button; 43 | 44 | @end 45 | 46 | @interface ReaderMainToolbar : UIXToolbarView 47 | 48 | @property (nonatomic, weak, readwrite) id delegate; 49 | 50 | - (instancetype)initWithFrame:(CGRect)frame document:(ReaderDocument *)document; 51 | 52 | - (void)setBookmarkState:(BOOL)state; 53 | 54 | - (void)hideToolbar; 55 | - (void)showToolbar; 56 | 57 | @end 58 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderContentView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderContentView.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-07-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | 28 | #import "ReaderThumbView.h" 29 | 30 | @class ReaderContentView; 31 | @class ReaderContentPage; 32 | @class ReaderContentThumb; 33 | 34 | @protocol ReaderContentViewDelegate 35 | 36 | @required // Delegate protocols 37 | 38 | - (void)contentView:(ReaderContentView *)contentView touchesBegan:(NSSet *)touches; 39 | 40 | @end 41 | 42 | @interface ReaderContentView : UIScrollView 43 | 44 | @property (nonatomic, weak, readwrite) id message; 45 | 46 | - (instancetype)initWithFrame:(CGRect)frame fileURL:(NSURL *)fileURL page:(NSUInteger)page password:(NSString *)phrase; 47 | 48 | - (void)showPageThumb:(NSURL *)fileURL page:(NSInteger)page password:(NSString *)phrase guid:(NSString *)guid; 49 | 50 | - (id)processSingleTap:(UITapGestureRecognizer *)recognizer; 51 | 52 | - (void)zoomIncrement:(UITapGestureRecognizer *)recognizer; 53 | - (void)zoomDecrement:(UITapGestureRecognizer *)recognizer; 54 | - (void)zoomResetAnimated:(BOOL)animated; 55 | 56 | @end 57 | 58 | #pragma mark - 59 | 60 | // 61 | // ReaderContentThumb class interface 62 | // 63 | 64 | @interface ReaderContentThumb : ReaderThumbView 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderContentTile.m: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderContentTile.m 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-07-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import "ReaderContentTile.h" 27 | 28 | @implementation ReaderContentTile 29 | 30 | #pragma mark - Constants 31 | 32 | #define LEVELS_OF_DETAIL 16 33 | 34 | #pragma mark - ReaderContentTile class methods 35 | 36 | + (CFTimeInterval)fadeDuration 37 | { 38 | return 0.001; // iOS bug (flickering tiles) workaround 39 | } 40 | 41 | #pragma mark - ReaderContentTile instance methods 42 | 43 | - (instancetype)init 44 | { 45 | if ((self = [super init])) // Initialize superclass 46 | { 47 | self.levelsOfDetail = LEVELS_OF_DETAIL; // Zoom levels 48 | 49 | self.levelsOfDetailBias = (LEVELS_OF_DETAIL - 1); // Bias 50 | 51 | UIScreen *mainScreen = [UIScreen mainScreen]; // Main screen 52 | 53 | CGFloat screenScale = [mainScreen scale]; // Main screen scale 54 | 55 | CGRect screenBounds = [mainScreen bounds]; // Main screen bounds 56 | 57 | CGFloat w_pixels = (screenBounds.size.width * screenScale); 58 | 59 | CGFloat h_pixels = (screenBounds.size.height * screenScale); 60 | 61 | CGFloat max = ((w_pixels < h_pixels) ? h_pixels : w_pixels); 62 | 63 | CGFloat sizeOfTiles = ((max < 512.0f) ? 512.0f : 1024.0f); 64 | 65 | self.tileSize = CGSizeMake(sizeOfTiles, sizeOfTiles); 66 | } 67 | 68 | return self; 69 | } 70 | 71 | @end 72 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderDocument.h: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderDocument.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-07-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | 28 | @interface ReaderDocument : NSObject 29 | 30 | @property (nonatomic, strong, readonly) NSString *guid; 31 | @property (nonatomic, strong, readonly) NSDate *fileDate; 32 | @property (nonatomic, strong, readwrite) NSDate *lastOpen; 33 | @property (nonatomic, strong, readonly) NSNumber *fileSize; 34 | @property (nonatomic, strong, readonly) NSNumber *pageCount; 35 | @property (nonatomic, strong, readwrite) NSNumber *pageNumber; 36 | @property (nonatomic, strong, readonly) NSMutableIndexSet *bookmarks; 37 | @property (nonatomic, strong, readonly) NSString *password; 38 | @property (nonatomic, strong, readonly) NSString *fileName; 39 | @property (nonatomic, strong, readonly) NSURL *fileURL; 40 | 41 | @property (nonatomic, readonly) BOOL canEmail; 42 | @property (nonatomic, readonly) BOOL canExport; 43 | @property (nonatomic, readonly) BOOL canPrint; 44 | 45 | + (ReaderDocument *)withDocumentFilePath:(NSString *)filePath password:(NSString *)phrase; 46 | 47 | + (ReaderDocument *)unarchiveFromFileName:(NSString *)filePath password:(NSString *)phrase; 48 | 49 | - (instancetype)initWithFilePath:(NSString *)filePath password:(NSString *)phrase; 50 | 51 | - (BOOL)archiveDocumentProperties; 52 | 53 | - (void)updateDocumentProperties; 54 | 55 | @end 56 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderMainPagebar.h: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderMainPagebar.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-09-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | 28 | #import "ReaderThumbView.h" 29 | 30 | @class ReaderMainPagebar; 31 | @class ReaderTrackControl; 32 | @class ReaderPagebarThumb; 33 | @class ReaderDocument; 34 | 35 | @protocol ReaderMainPagebarDelegate 36 | 37 | @required // Delegate protocols 38 | 39 | - (void)pagebar:(ReaderMainPagebar *)pagebar gotoPage:(NSInteger)page; 40 | 41 | @end 42 | 43 | @interface ReaderMainPagebar : UIView 44 | 45 | @property (nonatomic, weak, readwrite) id delegate; 46 | 47 | - (instancetype)initWithFrame:(CGRect)frame document:(ReaderDocument *)object; 48 | 49 | - (void)updatePagebar; 50 | 51 | - (void)hidePagebar; 52 | - (void)showPagebar; 53 | 54 | @end 55 | 56 | #pragma mark - 57 | 58 | // 59 | // ReaderTrackControl class interface 60 | // 61 | 62 | @interface ReaderTrackControl : UIControl 63 | 64 | @property (nonatomic, assign, readonly) CGFloat value; 65 | 66 | @end 67 | 68 | #pragma mark - 69 | 70 | // 71 | // ReaderPagebarThumb class interface 72 | // 73 | 74 | @interface ReaderPagebarThumb : ReaderThumbView 75 | 76 | - (instancetype)initWithFrame:(CGRect)frame small:(BOOL)small; 77 | 78 | @end 79 | 80 | #pragma mark - 81 | 82 | // 83 | // ReaderPagebarShadow class interface 84 | // 85 | 86 | @interface ReaderPagebarShadow : UIView 87 | 88 | @end 89 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderThumbsView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderThumbsView.h 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-09-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import 27 | 28 | #import "ReaderThumbView.h" 29 | 30 | @class ReaderThumbsView; 31 | 32 | @protocol ReaderThumbsViewDelegate 33 | 34 | @required // Delegate protocols 35 | 36 | - (NSUInteger)numberOfThumbsInThumbsView:(ReaderThumbsView *)thumbsView; 37 | 38 | - (id)thumbsView:(ReaderThumbsView *)thumbsView thumbCellWithFrame:(CGRect)frame; 39 | 40 | - (void)thumbsView:(ReaderThumbsView *)thumbsView updateThumbCell:(id)thumbCell forIndex:(NSInteger)index; 41 | 42 | - (void)thumbsView:(ReaderThumbsView *)thumbsView didSelectThumbWithIndex:(NSInteger)index; 43 | 44 | @optional // Delegate protocols 45 | 46 | - (void)thumbsView:(ReaderThumbsView *)thumbsView refreshThumbCell:(id)thumbCell forIndex:(NSInteger)index; 47 | 48 | - (void)thumbsView:(ReaderThumbsView *)thumbsView didPressThumbWithIndex:(NSInteger)index; 49 | 50 | @end 51 | 52 | @interface ReaderThumbsView : UIScrollView 53 | 54 | @property (nonatomic, weak, readwrite) id delegate; 55 | 56 | - (void)setThumbSize:(CGSize)thumbSize; 57 | 58 | - (void)reloadThumbsCenterOnIndex:(NSInteger)index; 59 | 60 | - (void)reloadThumbsContentOffset:(CGPoint)newContentOffset; 61 | 62 | - (void)refreshThumbWithIndex:(NSInteger)index; 63 | 64 | - (void)refreshVisibleThumbs; 65 | 66 | - (CGPoint)insetContentOffset; 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h: -------------------------------------------------------------------------------- 1 | // UIActivityIndicatorView+AFNetworking.h 2 | // Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining a copy 5 | // of this software and associated documentation files (the "Software"), to deal 6 | // in the Software without restriction, including without limitation the rights 7 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | // copies of the Software, and to permit persons to whom the Software is 9 | // furnished to do so, subject to the following conditions: 10 | // 11 | // The above copyright notice and this permission notice shall be included in 12 | // all copies or substantial portions of the Software. 13 | // 14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | // THE SOFTWARE. 21 | 22 | #import 23 | 24 | #import 25 | 26 | #if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) 27 | 28 | #import 29 | 30 | @class AFURLConnectionOperation; 31 | 32 | /** 33 | This category adds methods to the UIKit framework's `UIActivityIndicatorView` class. The methods in this category provide support for automatically starting and stopping animation depending on the loading state of a request operation or session task. 34 | */ 35 | @interface UIActivityIndicatorView (AFNetworking) 36 | 37 | ///---------------------------------- 38 | /// @name Animating for Session Tasks 39 | ///---------------------------------- 40 | 41 | /** 42 | Binds the animating state to the state of the specified task. 43 | 44 | @param task The task. If `nil`, automatic updating from any previously specified operation will be disabled. 45 | */ 46 | #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 47 | - (void)setAnimatingWithStateOfTask:(nullable NSURLSessionTask *)task; 48 | #endif 49 | 50 | ///--------------------------------------- 51 | /// @name Animating for Request Operations 52 | ///--------------------------------------- 53 | 54 | /** 55 | Binds the animating state to the execution state of the specified operation. 56 | 57 | @param operation The operation. If `nil`, automatic updating from any previously specified operation will be disabled. 58 | */ 59 | - (void)setAnimatingWithStateOfOperation:(nullable AFURLConnectionOperation *)operation; 60 | 61 | @end 62 | 63 | #endif 64 | -------------------------------------------------------------------------------- /Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.h: -------------------------------------------------------------------------------- 1 | // UIRefreshControl+AFNetworking.m 2 | // 3 | // Copyright (c) 2014 AFNetworking (http://afnetworking.com) 4 | // 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | #import 24 | 25 | #import 26 | 27 | #if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) 28 | 29 | #import 30 | 31 | NS_ASSUME_NONNULL_BEGIN 32 | 33 | @class AFURLConnectionOperation; 34 | 35 | /** 36 | This category adds methods to the UIKit framework's `UIRefreshControl` class. The methods in this category provide support for automatically beginning and ending refreshing depending on the loading state of a request operation or session task. 37 | */ 38 | @interface UIRefreshControl (AFNetworking) 39 | 40 | ///----------------------------------- 41 | /// @name Refreshing for Session Tasks 42 | ///----------------------------------- 43 | 44 | /** 45 | Binds the refreshing state to the state of the specified task. 46 | 47 | @param task The task. If `nil`, automatic updating from any previously specified operation will be disabled. 48 | */ 49 | #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 50 | - (void)setRefreshingWithStateOfTask:(NSURLSessionTask *)task; 51 | #endif 52 | 53 | ///---------------------------------------- 54 | /// @name Refreshing for Request Operations 55 | ///---------------------------------------- 56 | 57 | /** 58 | Binds the refreshing state to the execution state of the specified operation. 59 | 60 | @param operation The operation. If `nil`, automatic updating from any previously specified operation will be disabled. 61 | */ 62 | - (void)setRefreshingWithStateOfOperation:(AFURLConnectionOperation *)operation; 63 | 64 | @end 65 | 66 | NS_ASSUME_NONNULL_END 67 | 68 | #endif 69 | -------------------------------------------------------------------------------- /Pods/ChameleonFramework/Pod/Classes/Objective-C/UIImage+ChameleonPrivate.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIImage+ChameleonPrivate.m 3 | // Chameleon 4 | // 5 | // Created by Vicc Alexander on 6/8/15. 6 | // Copyright (c) 2015 Vicc Alexander. All rights reserved. 7 | // 8 | 9 | #import "UIImage+ChameleonPrivate.h" 10 | 11 | @implementation UIImage (ChameleonPrivate) 12 | 13 | // Would not have been possible without - http://stackoverflow.com/a/1262893 14 | + (UIColor *)colorFromImage:(UIImage *)image atPoint:(CGPoint)point { 15 | 16 | //Encapsulate our image 17 | CGImageRef imageRef = image.CGImage; 18 | NSUInteger width = CGImageGetWidth(imageRef); 19 | NSUInteger height = CGImageGetHeight(imageRef); 20 | 21 | //Specify the colorspace we're in 22 | CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); 23 | 24 | //Extract the data we need 25 | unsigned char *rawData = calloc(height * width * 4, sizeof(unsigned char)); 26 | NSUInteger bytesPerPixel = 4; 27 | NSUInteger bytesPerRow = bytesPerPixel * width; 28 | NSUInteger bitsPerComponent = 8; 29 | CGContextRef context = CGBitmapContextCreate(rawData, width, height, bitsPerComponent, bytesPerRow, 30 | colorSpace, kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big); 31 | //Release colorspace 32 | CGColorSpaceRelease(colorSpace); 33 | 34 | //Draw and release image 35 | CGContextDrawImage(context, CGRectMake(0, 0, width, height), imageRef); 36 | CGContextRelease(context); 37 | 38 | //rawData now contains the image data in RGBA8888 39 | NSInteger byteIndex = (bytesPerRow * point.y) + (point.x * bytesPerPixel); 40 | 41 | //Define our RGBA values 42 | CGFloat red = (rawData[byteIndex] * 1.f) / 255.f; 43 | CGFloat green = (rawData[byteIndex + 1] * 1.f) / 255.f; 44 | CGFloat blue = (rawData[byteIndex + 2] * 1.f) / 255.f; 45 | CGFloat alpha = (rawData[byteIndex + 3] * 1.0) / 255.f; 46 | 47 | //Free our rawData 48 | free(rawData); 49 | 50 | //Return color 51 | return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; 52 | } 53 | 54 | + (UIImage *)imageWithImage:(UIImage *)image scaledToSize:(CGSize)newSize { 55 | 56 | UIGraphicsBeginImageContextWithOptions(newSize, NO, 1.0); 57 | [image drawInRect:CGRectMake(0, 0, newSize.width, newSize.height)]; 58 | UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext(); 59 | UIGraphicsEndImageContext(); 60 | return newImage; 61 | } 62 | 63 | #pragma mark - Instance Methods 64 | 65 | - (UIImage *)imageScaledToSize:(CGSize)newSize { 66 | 67 | UIGraphicsBeginImageContextWithOptions(newSize, NO, 1.0); 68 | [self drawInRect:CGRectMake(0, 0, newSize.width, newSize.height)]; 69 | UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext(); 70 | UIGraphicsEndImageContext(); 71 | return newImage; 72 | } 73 | 74 | @end 75 | -------------------------------------------------------------------------------- /PDFViewAndDownload/HLLClasses/HLLLibs/Reader/Sources/ReaderThumbView.m: -------------------------------------------------------------------------------- 1 | // 2 | // ReaderThumbView.m 3 | // Reader v2.8.6 4 | // 5 | // Created by Julius Oklamcak on 2011-09-01. 6 | // Copyright © 2011-2015 Julius Oklamcak. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights to 11 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | // of the Software, and to permit persons to whom the Software is furnished to 13 | // do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | // 25 | 26 | #import "ReaderThumbView.h" 27 | 28 | @implementation ReaderThumbView 29 | { 30 | NSOperation *_operation; 31 | 32 | NSUInteger _targetTag; 33 | } 34 | 35 | #pragma mark - Properties 36 | 37 | @synthesize operation = _operation; 38 | @synthesize targetTag = _targetTag; 39 | 40 | #pragma mark - ReaderThumbView instance methods 41 | 42 | - (instancetype)initWithFrame:(CGRect)frame 43 | { 44 | if ((self = [super initWithFrame:frame])) 45 | { 46 | self.autoresizesSubviews = NO; 47 | self.userInteractionEnabled = NO; 48 | self.contentMode = UIViewContentModeRedraw; 49 | self.autoresizingMask = UIViewAutoresizingNone; 50 | self.backgroundColor = [UIColor clearColor]; 51 | 52 | imageView = [[UIImageView alloc] initWithFrame:self.bounds]; 53 | 54 | imageView.autoresizesSubviews = NO; 55 | imageView.userInteractionEnabled = NO; 56 | imageView.autoresizingMask = UIViewAutoresizingNone; 57 | imageView.contentMode = UIViewContentModeScaleAspectFit; 58 | 59 | [self addSubview:imageView]; 60 | } 61 | 62 | return self; 63 | } 64 | 65 | - (void)showImage:(UIImage *)image 66 | { 67 | imageView.image = image; // Show image 68 | } 69 | 70 | - (void)showTouched:(BOOL)touched 71 | { 72 | // Implemented by ReaderThumbView subclass 73 | } 74 | 75 | - (void)removeFromSuperview 76 | { 77 | _targetTag = 0; // Clear target tag 78 | 79 | [self.operation cancel]; // Cancel operation 80 | 81 | [super removeFromSuperview]; // Remove view 82 | } 83 | 84 | - (void)reuse 85 | { 86 | _targetTag = 0; // Clear target tag 87 | 88 | [self.operation cancel]; // Cancel operation 89 | 90 | imageView.image = nil; // Release image 91 | } 92 | 93 | @end 94 | --------------------------------------------------------------------------------