Commit 2bf26c46 authored by 管鹏飞's avatar 管鹏飞

删除照片 Sandy

parent 6762b7ed
...@@ -130,6 +130,7 @@ static HGPhWViewController *_instance = nil; ...@@ -130,6 +130,7 @@ static HGPhWViewController *_instance = nil;
} }
- (void)photoWallPhotoDel:(NSUInteger)index { - (void)photoWallPhotoDel:(NSUInteger)index {
[_photoWall deletePhotoByIndex:index]; [_photoWall deletePhotoByIndex:index];
[[JavenImages shareInstance].imageArr removeObjectAtIndex:index];
} }
- (void)delCoverV { - (void)delCoverV {
......
...@@ -132,12 +132,9 @@ typedef NS_ENUM(NSUInteger, feedbackCellInfo){ ...@@ -132,12 +132,9 @@ typedef NS_ENUM(NSUInteger, feedbackCellInfo){
[imgV addGestureRecognizer:tpGes]; [imgV addGestureRecognizer:tpGes];
[backView addSubview:imgV]; [backView addSubview:imgV];
_headImageView = imgV; _headImageView = imgV;
//if ([JavenImages shareInstance].imageArr.count > 0) {
imgV.frame = backView.frame; imgV.frame = backView.frame;
//imgV.image = [JavenImages shareInstance].imageArr[0];
UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom]; UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
btn.frame = (CGRect){ btn.frame = (CGRect){
.origin.x = imgV.width * 0.2, .origin.x = imgV.width * 0.2,
...@@ -512,6 +509,7 @@ typedef NS_ENUM(NSUInteger, feedbackCellInfo){ ...@@ -512,6 +509,7 @@ typedef NS_ENUM(NSUInteger, feedbackCellInfo){
_headImageView.hidden = NO; _headImageView.hidden = NO;
_noImageHeadView.hidden = YES; _noImageHeadView.hidden = YES;
}else{ }else{
_headImageView.hidden = YES;
_noImageHeadView.hidden = NO; _noImageHeadView.hidden = NO;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment