123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // DetailViewController.h
- // iOSDemo
- //
- // Created by adam on 29/09/2012.
- // Copyright (c) 2012 na. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- #import "SVGKit.h"
- #import "SVGKImage.h"
- #define LOAD_SYNCHRONOUSLY 0 // Synchronous load is less code, easier to write - but poor for large images
- #define ALLOW_2X_STYLE_SCALING_OF_SVGS_AS_AN_EXAMPLE 1 // demonstrates using the "SVGKImage.scale" property to scale an SVG *before it generates output image data*
- #define ALLOW_SVGKFASTIMAGEVIEW_TO_DO_HIT_TESTING 1 // only exists because people ignore the docs and try to do this when they clearly shouldn't. If you're foolish enough to do this, this code will show you how to do it CORRECTLY. Look how much code this requires! It's insane! Use SVGKLayeredImageView instead if you need hit-testing!
- #define SHOW_DEBUG_INFO_ON_EACH_TAPPED_LAYER 1 // each time you tap and select a layer, that layer's info is displayed on-screen
- @interface DetailViewController : UIViewController < UIPopoverControllerDelegate, UISplitViewControllerDelegate, UIScrollViewDelegate>
- @property (nonatomic, strong) SVGKSource *sourceOfCurrentDocument;
- @property (nonatomic, strong) UITextView* exportText;
- @property (nonatomic, strong) NSMutableString* exportLog;
- @property (nonatomic, strong) UITapGestureRecognizer* tapGestureRecognizer;
- @property (nonatomic, strong) IBOutlet UIToolbar *toolbar;
- @property (nonatomic, strong) IBOutlet UIScrollView *scrollViewForSVG;
- @property (nonatomic, strong) IBOutlet SVGKImageView *contentView;
- @property (nonatomic, strong) IBOutlet UIActivityIndicatorView *viewActivityIndicator;
- @property (nonatomic, strong) IBOutlet UIProgressView* progressLoading;
- @property (nonatomic, strong) IBOutlet UIView* subViewLoadingPopup;
- @property(nonatomic,strong) IBOutlet UILabel* labelParseTime;
- @property(nonatomic) BOOL requiresLayeredImageView;
- @property (nonatomic, strong) id detailItem;
- - (IBAction)animate:(id)sender;
- - (IBAction) showHideBorder:(id)sender;
- @end
|