Coder Social home page Coder Social logo

Comments (2)

yoowei avatar yoowei commented on May 2, 2024

您好,针对第一个问题,我自己已经解决。解决过程如下:
我发现在+ (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.

HarrisonXi avatar HarrisonXi commented on May 2, 2024

轮播布局已经接近不维护状态,考虑到 banner 区的复杂曝光统计逻辑和交互逻辑,建议自行实现整体控件后注入 Tangram 当组件使用

from tangram-ios.

Related Issues (20)

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.