// // PicViewModel.h // RealEstateManagement // // Created by Javen on 2017/1/6. // Copyright © 2017年 上海勾芒信息科技. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, kPicCellType) { kPicCellTypeAdd = 0, kPicCellTypeEdit, kPicCellTypeRead }; //图片的size #define kPicCellSize CGSizeMake((kWidth - 30) / 2.0, (kWidth - 120) / 2.0) //允许的最大图片数量 static CGFloat const kMaxAddRepairImgNumber = 2; @interface PicViewModel : NSObject @property (strong, nonatomic) NSMutableArray *arrPics; @property(nonatomic, strong) NSMutableArray *selectedAssets; /** 图片cell的类型 */ @property (nonatomic, assign) kPicCellType type; /** 获取cell的高度 @return 高度 */ - (CGFloat)cellHeight; @end