Skip to content
类似一些网站上的循环轮播广告效果(同时可见三个card),使用和TableView相似,设计了个渣渣缓存。
Objective-C Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MKCarouselView
MKCarouselViewDemo
.gitignore
.swift-version
LICENSE
MKCarouselView.podspec
README.md
轮播图.gif

README.md

MKCarouselView

CI Status Version License Platform

MKCarouselView是一个类似一些网站上的循环轮播广告控件

  • 文件两个类:MKCarouselView和MKCarouselViewCell,类似于Tableview和Tableviewcell

  • 数据源代理:MKCarouselViewDataSource

- (NSInteger)numberOfCellInCarouselView:(MKCarouselView *)carouselView;

- (MKCarouselViewCell *)carouselView:(MKCarouselView *)carouselView cellForIndex:(NSInteger)index;

  • 点击事件代理:MKCarouselViewDelegate

- (void)carouselView:(MKCarouselView *)carouselView didClickTheCellAtIndex:(NSInteger)index;

  • 缓存使用方法:

- (MKCarouselViewCell *)dequeueReusableCellWithIdentifier:(NSString *)indentifier;

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

MKCarouselView is available through CocoaPods. To install it, simply add the following line to your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'MKCarouselView'
end

Author

xiushaomin@gmail.com

License

MKCarouselView is available under the MIT license. See the LICENSE file for more info.

You can’t perform that action at this time.