joinxinxu / wphoto Goto Github PK
View Code? Open in Web Editor NEW自定义相册中选择多张图片展示和上传
自定义相册中选择多张图片展示和上传
感觉功能有点简单,建议增加
1、预览功能
2、取消图片选择的回调(我需要知道用户是否取消选择图片了)
3、图片选择超过上限的提示
NSString *cellId = [NSString stringWithFormat:@"cell%ld", (long)i];
[self.ado_collectionView registerClass:[myPhotoCell class] forCellWithReuseIdentifier:cellId]; 这样给每个cell设置不同的Identifier 是否失去了复用机制的意义
原因就是,那个collectionview 的frame和完成按钮有重叠。修改collectionview的高度就可以了
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]];
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.