Giter VIP home page Giter VIP logo

espicturebrowser's Issues

浏览图片时隐藏状态栏

浏览图片的时候隐藏状态栏效果更好。有一些图片是手机截屏,浏览时和状态栏重合的,看着很不舒服

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

您好!第一次点击小图弹出正常,点击图片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…

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.