Comments (4)
能否提供一个布局错乱的Demo看一下效果
from xlcardswitch.
公司项目很赶,不是很方便。解决了,图片数据源切换的时候调collectionView cellForItem(at: indexPath)遍历了一遍cell手动刷新了。这个可能是layoutAttributesForElements的问题,具体不清楚,溜了
from xlcardswitch.
额,我可能知道了,你demo里在viewDidLoad就获取到具体frame了,我这根据其他页面传入参数在算(变),我把高度定死了也没问题
from xlcardswitch.
好的
from xlcardswitch.
Related Issues (12)
- 有点问题想请教一下大大优化一下 HOT 1
- 想在放大的效果上在添加透明度的改变,居中透明度为 1 ,其他为 0.5 ,我应该如何计算alpha HOT 6
- 自动居中时,-(void)cardSwitchDidScrollToIndex:(NSInteger)index;代理方法经常没有调用 HOT 1
- 删除卡片左右两边的卡片晃动怎么处理 HOT 1
- 能增加无限滚动吗 HOT 2
- 切换时会出现图片的闪动 HOT 3
- 自定义item的大小 HOT 4
- 能否支持网络图片? HOT 1
- 太难下载了
- great!
- 当只有2个卡片时,从第一个卡片滑动到第二个卡片,第二个卡片的点击事件被滑动事件拦截了,卡片大于2个就没有问题了 HOT 1
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 xlcardswitch.