Comments (2)
您好,针对第一个问题,我自己已经解决。解决过程如下:
我发现在+ (UIView *)prasePageScrollLayout:(TangramPageScrollLayout *)layout withDict:(NSDictionary *)dict;这个方法里面有如下代码:
if ([styleDict tgrm_stringForKey:@"infinite"].length > 0) {
layout.infiniteLoop = YES;
}
也就是我配置的参数"infinite":"true" ,或者是"infinite":"false" ,都是 layout.infiniteLoop = YES; ,那么就出现了第一个问题,同时还有另外一个现象(假如说总共有3张图,我滚动后第三张图接下来会出现第一张和第二张图,换句话说就是出现了5张图的效果)。
当我设置成"infinite":"" ,上述第一个问题(不从最左边开始显示)和5张图现象就没有了。
from tangram-ios.
轮播布局已经接近不维护状态,考虑到 banner 区的复杂曝光统计逻辑和交互逻辑,建议自行实现整体控件后注入 Tangram 当组件使用
from tangram-ios.
Related Issues (20)
- ios和安卓共用一套json的话怎么设置屏幕Width,一个是750,一个是720的,ios的比例参数在哪设置
- 自动布局怎么计算高度
- xml解析部分存在许多问题,不建议使用
- index返回错乱导致崩溃
- SDWebimage版本依赖问题
- 请问页面下拉刷新功能如何添加? HOT 1
- VirtualView复用时内部布局错乱 HOT 3
- VirtualView组件无法自适应高度 HOT 3
- layout不支持background表达式形式 HOT 1
- 之前的交流群失效了
- TangramLayoutTypeMap在pod中找不到
- 使用GridLayout布局问题
- TangramPageScrollLayout滚动回调怎么设置?
- IOS 12.0 那个悬浮控件的会跟着滚动上下跳动,能否处理一下 HOT 1
- Container可以嵌套Container吗?
- 代码bug HOT 1
- 怎样获得TAC服务端代码,网站的那个介绍没用了
- 文档提供
- 更新版本和点击事件 HOT 1
- 请问ios的能直接动态加载二进制模板数据吗?
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 tangram-ios.