Coder Social home page Coder Social logo

container-banner 没有内置到TangramLayoutTypeMap.plist文件中导致崩溃,indicatorImg1设置问题,aspectRatio设置问题 about tangram-ios HOT 14 CLOSED

alibaba avatar alibaba commented on May 2, 2024
container-banner 没有内置到TangramLayoutTypeMap.plist文件中导致崩溃,indicatorImg1设置问题,aspectRatio设置问题

from tangram-ios.

Comments (14)

xian-zh avatar xian-zh commented on May 2, 2024

在使用轮播布局type=10 的时候使用indicatorImg1图片时,定时器startTimer调用两次但是重复创建了导致页面异常
pastedgraphic-3

from tangram-ios.

xian-zh avatar xian-zh commented on May 2, 2024

在使用indicatorImg1 时calculateLayout调用了buildIndicator方法加载图片出来indicatorHeight如果indicatorHeight高度没设置的话[strongSelf heightChangedWithElement:nil model:nil];后又调用了calculateLayout方法导致布局重复添加了,致使图片自动滚动异常
wx20180130-104108
wx20180130-104310

from tangram-ios.

xian-zh avatar xian-zh commented on May 2, 2024

snip20180130_1
看图求解TangramPageScrollLayout布局 aspectRatio设置逻辑问题

from tangram-ios.

xian-zh avatar xian-zh commented on May 2, 2024

在流式布局中 设置aspectRatio表示每行的宽高比
pasted graphic 1
但是在设置
pasted graphic 2
pasted graphic 3

导致aspectRatio设置没有效果呢

from tangram-ios.

HarrisonXi avatar HarrisonXi commented on May 2, 2024

关于 container-banner 这个容器,iOS 版本里的确暂时没有打算在开源版里支持。如果您遇到崩溃的话,还请提供更详细点的信息我们排查并保护一下。

from tangram-ios.

HarrisonXi avatar HarrisonXi commented on May 2, 2024

关于 scroll 容器的问题,参照 #39

from tangram-ios.

HarrisonXi avatar HarrisonXi commented on May 2, 2024

计时器的问题已收到,后续会进行修复

from tangram-ios.

HarrisonXi avatar HarrisonXi commented on May 2, 2024

最后一个 aspectRatio 的问题图裂了

from tangram-ios.

HarrisonXi avatar HarrisonXi commented on May 2, 2024

另外不同的文件建议分开多个 issue 提问

from tangram-ios.

xian-zh avatar xian-zh commented on May 2, 2024

好的最后一我重新开issue

from tangram-ios.

xian-zh avatar xian-zh commented on May 2, 2024

container-banner 容器,在android 有container-banner这个type,iOS没有导致我使用android的json文件中没找布局类型致时布局数组索引越界崩溃
wx20180130-170638

from tangram-ios.

HarrisonXi avatar HarrisonXi commented on May 2, 2024

这个崩溃问题是上层代码没有做保护导致的,并不是 SDK 内部问题。

写 demo 的时候比较随意,没有做这些保护。自己写代码的时候最好做一些保护。

from tangram-ios.

halfrisk avatar halfrisk commented on May 2, 2024

我也测试发现了此问题,如果Android与ios支持类型不一致,这样将不能只维护一套json配置文件了,有什么好的解决办法?

from tangram-ios.

GitChenM avatar GitChenM commented on May 2, 2024

ios坑有点多啊,这样搞,反而更麻烦了

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.