Skip to content

Commit

Permalink
增加编辑裁剪功能
Browse files Browse the repository at this point in the history
  • Loading branch information
longitachi committed Jun 23, 2017
1 parent 59c0461 commit 081a215
Show file tree
Hide file tree
Showing 23 changed files with 650 additions and 35 deletions.
2 changes: 2 additions & 0 deletions PhotoBrowser/ZLBigImageCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@

@class ZLPhotoModel;
@class PHAsset;
@class ZLBigImageView;

@interface ZLBigImageCell : UICollectionViewCell

@property (nonatomic, strong) ZLBigImageView *bigImageView;
@property (nonatomic, strong) ZLPhotoModel *model;
@property (nonatomic, copy) void (^singleTapCallBack)();

Expand Down
2 changes: 0 additions & 2 deletions PhotoBrowser/ZLBigImageCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

@interface ZLBigImageCell ()

@property (nonatomic, strong) ZLBigImageView *bigImageView;

@end

@implementation ZLBigImageCell
Expand Down
2 changes: 2 additions & 0 deletions PhotoBrowser/ZLDefine.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
#define ZLPhotoBrowserCannotSelectGIF @"ZLPhotoBrowserCannotSelectGIF"
#define ZLPhotoBrowserCannotSelectLivePhoto @"ZLPhotoBrowserCannotSelectLivePhoto"
#define ZLPhotoBrowseriCloudVideoText @"ZLPhotoBrowseriCloudVideoText"
#define ZLPhotoBrowserEditText @"ZLPhotoBrowserEditText"
#define ZLPhotoBrowserSaveText @"ZLPhotoBrowserSaveText"

#define kRGB(r, g, b) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1]

Expand Down
18 changes: 18 additions & 0 deletions PhotoBrowser/ZLEditViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// ZLEditViewController.h
// ZLPhotoBrowser
//
// Created by long on 2017/6/23.
// Copyright © 2017年 long. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ZLPhotoModel;

@interface ZLEditViewController : UIViewController

@property (nonatomic, strong) UIImage *oriImage;
@property (nonatomic, strong) ZLPhotoModel *model;

@end
Loading

0 comments on commit 081a215

Please sign in to comment.