Skip to content

Instantly share code, notes, and snippets.

@HeidiHansen
Created September 12, 2014 21:56
Show Gist options
  • Save HeidiHansen/507198f2daef8b6724c8 to your computer and use it in GitHub Desktop.
Save HeidiHansen/507198f2daef8b6724c8 to your computer and use it in GitHub Desktop.
05. THEditImageViewController.h
#import <UIKit/UIKit.h>
#import "THCameraViewController.h"
#import "THConversationShareViewController.h"
@interface THEditImageViewController : UIViewController <ConversationShareViewControllerDelegate>
#pragma mark - Object Properties
@property (strong, nonatomic) id <ConversationShareViewControllerDelegate> delegate;
@property (strong, nonatomic) UIImage *imageToProcess;
@property(strong, nonatomic) UIImage *savedImage;
@property (strong, nonatomic) UIView *cameraContainerView;
@property (strong, nonatomic) UIView *thenContainerView;
@property (strong, nonatomic) UIView *nowContainerView;
@property (strong, nonatomic) UIScrollView *nowScrollView;
@property (strong, nonatomic) UIScrollView *thenScrollView;
@property (strong, nonatomic) THCameraViewController *cameraVC;
@property (strong, nonatomic) UIBarButtonItem *cameraButton;
@property (strong, nonatomic) UIImageView *thenImageView;
@property (strong, nonatomic) UIImageView *nowImageView;
@property (strong, nonatomic) UIView *contentViewForThenImage;
@property (strong, nonatomic) UIView *contentViewForNowImage;
@property (strong, nonatomic) UIView *contentViewForSecondaryToolbar;
@property (strong, nonatomic) UIImage *thenImage;
@property (strong, nonatomic) UIImage *nowImage;
@property (strong, nonatomic) UILabel *thenLabel;
@property (strong, nonatomic) UILabel *nowLabel;
@property (strong, nonatomic) UIToolbar *toolbar;
@property (strong, nonatomic) NSArray *baseToolbarItems;
@property (strong, nonatomic) NSArray *textToolbarItems;
@property (strong, nonatomic) NSArray *stickerToolbarItems;
@property (strong, nonatomic) NSArray *frameToolbarItems;
@property (strong, nonatomic) NSArray *layoutToolbarItems;
@property (strong, nonatomic) NSMutableArray *dataFields;
@property (strong, nonatomic) UIView *topSpacer;
@property (strong, nonatomic) UIButton *editButton;
@property (strong, nonatomic) UIBarButtonItem *returnButton;
@property (strong, nonatomic) UIBarButtonItem *spacerBBI;
#pragma mark - LayoutConstraint Properties
@property (strong, nonatomic) NSDictionary *topBottomViewsDictionary;
@property (strong, nonatomic) NSDictionary *leftRightViewsDictionary;
@property (strong, nonatomic) NSDictionary *subviewsDictionary;
@property (strong, nonatomic) NSDictionary *labelsDictionary;
@property (strong, nonatomic) NSArray *horizontalToolbarConstraints;
@property (strong, nonatomic) NSArray *verticalToolbarConstraints;
@property (strong, nonatomic) NSArray *verticalCameraConstraints;
@property (strong, nonatomic) NSArray *horizontalCameraConstraints;
@property (strong, nonatomic) NSArray *verticalNowImageConstraints;
@property (strong, nonatomic) NSArray *verticalThenImageConstraints;
@property (strong, nonatomic) NSArray *horizontalNowImageConstraints;
@property (strong, nonatomic) NSArray *horizontalThenImageConstraints;
@property (strong, nonatomic) NSArray *verticalThenScrollViewConstraints;
@property (strong, nonatomic) NSArray *verticalNowScrollViewConstraints;
@property (strong, nonatomic) NSArray *horizontalThenScrollViewConstraints;
@property (strong, nonatomic) NSArray *horizontalNowScrollViewConstraints;
@property (strong, nonatomic) NSArray *horizontalICVConstraints;
@property (strong, nonatomic) NSArray *verticalThenContainerViewConstraints;
@property (strong, nonatomic) NSArray *verticalNowContainerViewConstraints;
@property (strong, nonatomic) NSArray *horizontalThenContainerViewConstraints;
@property (strong, nonatomic) NSArray *horizontalNowContainerViewConstraints;
@property (strong, nonatomic) NSArray *verticalICVConstraints;
@property (strong, nonatomic) NSArray *horizontalImageScrollViewContentSizeConstraints;
@property (strong, nonatomic) NSArray *verticalImageScrollViewContentSizeConstraints;
@property (strong, nonatomic) NSArray *horizontalToolbarScrollViewContentSizeConstraints;
@property (strong, nonatomic) NSArray *verticalToolbarScrollViewContentSizeConstraints;
@property (strong, nonatomic) NSArray *horizontalScrollViewConstraints;
@property (strong, nonatomic) NSArray *verticalScrollViewConstraints;
@property (strong, nonatomic) NSArray *thenLabelConstraints;
@property (strong, nonatomic) NSArray *nowLabelConstraints;
@property (strong, nonatomic) NSArray *verticalSecondaryToolbarConstraints;
@property (strong, nonatomic) NSArray *horizontalSecondaryToolbarConstraints;
@property (strong, nonatomic) UIScrollView *secondaryToolbar;
@property (strong, nonatomic) NSDictionary *metrics;
@property (strong, nonatomic) UIFont *labelsFont;
@property (strong, nonatomic) UIColor *chosenColor;
#pragma mark - Other Properties
@property (nonatomic) BOOL takingPhoto;
@property (nonatomic) BOOL editMode;
@property (nonatomic) BOOL horizontalSplit;
@property (nonatomic) BOOL thenOnLeftOrTop;
@property (strong, nonatomic) NSArray *typefaceButtonArray;
@property (strong, nonatomic) NSArray *fontColorButtonArray;
@property (strong, nonatomic) NSMutableArray *buttonColorArray;
- (void)setupBaseNavbar;
- (void)cameraTapped:(id)sender;
- (void)setupCameraNavigationBar;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment