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

图片中途才出现 #11

Open
xvwvx opened this issue Aug 5, 2015 · 3 comments
Open

图片中途才出现 #11

xvwvx opened this issue Aug 5, 2015 · 3 comments

Comments

@xvwvx
Copy link

xvwvx commented Aug 5, 2015

拖动上一张或下一张时 拖到一半 上一张或下一张图片才出来
bug

@CharlinFeng
Copy link
Owner

这个bug已知晓,请期待swift完美版

@BestKai
Copy link

BestKai commented Aug 15, 2015

-(void)reuserAndVisibleHandle:(NSUInteger)page{

//遍历可视视图字典,除了page之外的所有视图全部移除,并加入重用集合
[self.visiblePhotoItemViewDictM enumerateKeysAndObjectsUsingBlock:^(NSValue *key, PhotoItemView *photoItemView, BOOL *stop) {

    if(![key isEqualToValue:@(page)]){

        photoItemView.zoomScale=1;

        photoItemView.alpha=1;

        [self.reusablePhotoItemViewSetM addObject:photoItemView];

        [self.visiblePhotoItemViewDictM removeObjectForKey:key];
    }
}];

}

之前是 photoItemView.alpha=0;改成=1,就没有那个黑色问题了。

@xvwvx
Copy link
Author

xvwvx commented Aug 15, 2015

谢谢回复

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

3 participants