Giter Site home page Giter Site logo

wphoto's People

Contributors

joinxinxu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wphoto's Issues

刚用

感觉功能有点简单,建议增加
1、预览功能
2、取消图片选择的回调(我需要知道用户是否取消选择图片了)
3、图片选择超过上限的提示

WPhotoViewController中每个cell设置不同的Identifier

NSString *cellId = [NSString stringWithFormat:@"cell%ld", (long)i];
[self.ado_collectionView registerClass:[myPhotoCell class] forCellWithReuseIdentifier:cellId]; 这样给每个cell设置不同的Identifier 是否失去了复用机制的意义

在WPhotoViewController中didSelectItemAtIndexPath方法中对象移除两次

for (NSInteger j = 0; j<_chooseCellArray.count; j++) {

                    //
                    NSIndexPath *ip = [NSIndexPath indexPathForRow:[_chooseCellArray[j] integerValue] inSection:0];
                    
                    if (indexPath.row == ip.row) {
                        [_chooseArray removeObjectAtIndex:j];
                    }
                }
                // 可以注释掉  同一个对象为什么通过下标移除一次 又直接移除一次
               // [_chooseArray removeObject:result];
                [_chooseCellArray removeObject:[NSString stringWithFormat:@"%ld",(long)indexPath.row]];

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.