Git Product home page Git Product logo

jacyclenoticeview's Introduction

JACycleNoticeView

轮播公告视图

效果图
卡片列表效果图

使用

  1. 在你需要使用JACardView的控制器中
#import "JACycleNoticeView.h"
  1. 初始化
/*
* JACycleNoticeView初始化方法
*/
- (instancetype)initWithFrame:(CGRect)frame noticeItems:(NSArray<NSString*>*)items delegate:(id<JACycleNoticeViewDelegete>)delegate;
  1. 设置JACycleNoticeView属性
/*
* 数据源数组()
*/
@property (nonatomic,strong) NSMutableArray *noticeItems;

/*
* 代理
*/
@property (nonatomic,weak) id<JACycleNoticeViewDelegete> delegate;

/*
* 是否开启轮播 默认NO 不开启
*/
@property (nonatomic,assign) BOOL cycleScrollEnabled;
  1. 代理
/*
* 点击某一行Item触发的方法
*/
- (void)ja_noticeView:(JACycleNoticeView*)noticeView didSelectedItemAtIndex:(NSInteger)index;

/*
* 点击详情触发的方法
*/
- (void)detailAction;

jacyclenoticeview's People

Contributors

plotac avatar

Watchers

 avatar

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.