Comments (3)
多谢你的关注和肯定,这个周末我去实现一下~
from fmtagsview.
@CYZZ
周末研究了一番,要去封装一套的话,其实还是要用到UICollectionView,然后还是要公开DataSource和Delegate出来,感觉就没必要去进一步封装了。
频道管理功能其实也就是用两个UICollectionView去实现的,创建UIColectionViewCell的子类来定制外观,然后拖动排序可以参考这两个库:LewReorderableLayout 和 LXReorderableCollectionViewFlowLayout ; Cell里面显示编辑模式样式,其实也就是显示一个删除按钮(普通状态下是隐藏的),删除时候数据项里的项也要跟着删除,然后调用UICollectionView里的方法deleteItemsAtIndexPaths: 或者reloadData方法。
from fmtagsview.
好的,非常感谢,我去研究一下看看如何实现相关的功能,如果你有比较好的demo易于拓展的话请通知我谢谢。
from fmtagsview.
Related Issues (12)
- - (BOOL)tagsView:(FMTagsView *)tagsView shouldDeselectItemAtIndex:(NSUInteger)index;不执行 HOT 1
- The frame height doesn't adjust after layoutIfNeeded HOT 6
- is there any way to specify the color for each tag? HOT 1
- 已解决
- 建议添加长按删除功能 HOT 1
- 是否能实现动态返回collectionView 的 contentSize 高度 HOT 1
- 如何根据数据源动态设置高度呢? HOT 1
- 多选时,取消选择然后重新选,依然会执行超过最多限制的代理。 HOT 1
- tableView cell里面如何动态高度,使用的是Masonry布局 HOT 1
- 多选状态下,代理是否点击不响应 HOT 2
- DELETED
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fmtagsview.