Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第二次弹出browser时小图也会出现 #8

Open
phoenixin opened this issue Mar 28, 2017 · 0 comments
Open

第二次弹出browser时小图也会出现 #8

phoenixin opened this issue Mar 28, 2017 · 0 comments

Comments

@phoenixin
Copy link

phoenixin commented Mar 28, 2017

您好!第一次点击小图弹出正常,点击图片dismiss之后再次点击小图,小图也会出现在屏幕上,点击大图使其dismiss没有了动画效果。
代码如下:
`_taskImgThumbnail = [[UIImageView alloc] init];
//先截取原图正方形图片,再转化为200宽缩略图,转化为50的话图片模糊
_taskImgThumbnail.image = [self thumbnailWithImage:[self thumbnailCenterImage:[UIImage imageNamed:@"IMG_0065"] centerInSize:CGSizeMake([UIImage imageNamed:@"IMG_0065"].size.width, [UIImage imageNamed:@"IMG_0065"].size.width)] size:CGSizeMake(200,200)];
[self.view addSubview:_taskImgThumbnail];
[_taskImgThumbnail mas_makeConstraints:^(MASConstraintMaker make) {
make.centerX.equalTo(taskImgTip);
make.top.equalTo(taskImgTip.bottom).offset(7
WIDTHRATE);
make.size.equalTo(CGSizeMake(50WIDTHRATE, 50WIDTHRATE));
}];

_tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(taskImgTapEvent:)];
_tap.delegate = self;
_taskImgThumbnail.userInteractionEnabled = YES;
[_taskImgThumbnail addGestureRecognizer:_tap];

_picBrowser = [[ESPictureBrowser alloc] init];
_picBrowser.delegate = self;

#pragma mark -- 点击手势触发的事件

  • (void)taskImgTapEvent:(UITapGestureRecognizer *)pan{
    NSLog(@"dianji");
    [_picBrowser showFromView:_taskImgThumbnail picturesCount:1 currentPictureIndex:0];
    }

#pragma mark - 图片查看

初始界面
Uploading IMG_0168.PNG…

第一次点击小图弹出
Uploading IMG_0169.PNG…

第二次点击小图弹出
Uploading IMG_0170.PNG…

滑动dismiss时
Uploading IMG_0171.PNG…

滑动dismiss后再弹出
Uploading IMG_0172.PNG…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant