// // UpImageView.m // 乐销 // // Created by 隋林栋 on 2016/12/28. // Copyright © 2016年 ping. All rights reserved. // #import "UpImageView.h" @interface UpImageView() @end @implementation UpImageView #pragma mark lazy init - (UIView *)upImageBG{ if (_upImageBG == nil) { _upImageBG = [UIControl new]; _upImageBG.tag = 1; _upImageBG.width = SCREEN_WIDTH; _upImageBG.clipsToBounds = true; // [_upImageBG addTarget:self action:@selector(showImage) forControlEvents:UIControlEventTouchUpInside]; _upImageBG.widthHeight = XY(SCREEN_WIDTH,W(0)); _upImageBG.backgroundColor = [UIColor clearColor]; } return _upImageBG; } - (UIImageView *)upImageHead{ if (_upImageHead == nil) { _upImageHead = [UIImageView new]; _upImageHead.backgroundColor = [UIColor clearColor]; _upImageHead.image = [UIImage imageNamed:@"spgl_tp"]; _upImageHead.widthHeight = XY(W(17),W(17)); } return _upImageHead; } - (UILabel *)upImageLabel{ if (_upImageLabel == nil) { _upImageLabel = [UILabel new]; [GlobalMethod setLabel:_upImageLabel widthLimit:0 numLines:0 fontNum:F(14) textColor:COLOR_LABEL text:@"添加图片(选填)"]; } return _upImageLabel; } - (Collection_Image *)collection_Image{ if (!_collection_Image) { _collection_Image = [Collection_Image new]; _collection_Image.scrollDirection=UICollectionViewScrollDirectionVertical; WEAKSELF _collection_Image.blockUpComplete = ^(NSMutableArray *arr) { // NSMutableArray *ary = [NSMutableArray new]; // dispatch_queue_t serialQueue=dispatch_queue_create("串行", DISPATCH_QUEUE_SERIAL); // dispatch_sync(serialQueue, ^{ // for (int i =0; i