Giter Site home page Giter Site logo

iosyan / xycovercardview Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 3.0 4.83 MB

CoverCardView, 叠加的轮播view,类似知乎的回答问题。及like or pass。可定时轮播。banner。

Objective-C 100.00%
cardview carousel collectionviewlayout cover timer banner

xycovercardview's Introduction

XYCoverCardView

如果有任何疑问或新的需求可发邮件:[email protected] 如果有需要可以开发Swift版本。

CoverCardView, 叠加的轮播view,类似知乎的回答问题。及like or pass。可定时轮播。
可以用于Banner,或者广告推广展示。

2022.9.6-Notice:

  • 如果自定义cell,子控件用frame添加时,应避免将子控件的frame设为cell.frame。
  • 需用cell.bounds来替代。
    view.frame = self.bounds;
  • 主要原因是一开始cell.frame.origin的x,y都不是0,0。

2022.07.11-新增加:

  • 可以手动返回上一张。
  • 在分支dev-reverse里。下次有空的时候会合并分支。
    self.cardView.isCanReverse = YES;

2022.07.06-新增加:

  • 右边重叠效果
  • 自动轮播的方向可以自行设置
    // 重叠的方向
    self.cardView.coverDirectionType = XYCoverDirectionRight;
    // 移动的方向
    self.cardView.movedDirectionType = XYMovedDirectionLeft;

    // 重叠的方向
    self.cardView.coverDirectionType = XYCoverDirectionBottom;
    // 移动的方向
    self.cardView.movedDirectionType = XYMovedDirectionRight;

在早期项目中用到的,所以抽取出来,封装的比较粗糙,如果有实际需求欢迎提出,会继续改进。

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.