Giter Club home page Giter Club logo

Comments (1)

HJTXX avatar HJTXX commented on July 17, 2024

可以通过reloadChildControllers:childTitles来重定义pageTab,并且会保持原有索引,titles和vcs应数量一致,否则跟随最小数量;
如果使用同一个VC显示H5,显示上一页再显示下一页是必然的结果,因为VC从页面1到页面2的过程均暴露在外,可以使用WKWebView来创建多个VC,避免UIWebView的内存占用过高,如果还需要进一步减少VC数量,比如创建三个然后循环使用,就需要修改组件代码来支持不对等数量的动态添加;
至于加载卡的问题,如果是多个VC同时在初始化时加载,需要将加载资源放在pageTabViewDidEndChange中来操作,只加载当前展示的内容,但H5的加载卡顿问题较多,可检查单独加载H5是否卡顿,H5的加载还是比较消耗资源的,看H5的具体内容

from xxpagetabview.

Related Issues (8)

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.