登录 立即注册
金钱:

Code4App-iOS开发-iOS 开源代码库-iOS代码实例搜索-iOS特效示例-iOS代码例子下载-Code4App.com

Card Slider

[复制链接]
来自: alexmikhnev 分类: iOS精品源码 上传时间: 2018-10-29 17:14:21
Tag:

项目介绍:



Card Slider
About
This project is maintained by Ramotion, Inc.
We specialize in the designing and coding of custom UI for Mobile Apps and Websites.
Inspired by Charles Pattersonshot
Looking for developers for your project?
This project is maintained by Ramotion, Inc. We specialize in the designing and coding of custom UI for Mobile Apps and Websites.

Requirements
  • iOS 11.0+
  • Xcode 10.0+
Installation
Use CocoaPods with Podfile:
pod 'CardSlider'
Or Carthage users can simply add Mantle to their :   Cartfile
github "Ramotion/CardSlider"
Then import the module in your code:
Import CardSlider
Usage
  • Declare a card model, implementing protocol: CardSliderItem
Public protocol CardSliderItem {         var image : UIImage { get }         var rating : Int ? { get }         var title : String { get }         var subtitle : String ? { get }         var description : String ? { get }}
  • Implement methods in your class: CardSliderDataSource
Public protocol CardSliderDataSource : class {         func item ( for index : Int ) -> CardSliderItem         func numberOfItems () -> Int }
  • Create an instance of with the data source: CardSliderViewController
Guard let dataSource = someObject as? CardSliderDataSource else { return } let cardSlider = CardSliderViewController. with ( dataSource : dataSource)
  • Set the title and present:
cardSlider. title  = " Movies " present (cardSlider, animated : true , completion : nil )
Licence
CardSlider is released under the MIT license. See LICENSE for details.
Get the Showroom App for iOS to give it a try
Try more UI components like this in our iOS app. Contact us if interested.


Follow us for the latest updates



相关源码推荐:

我来说两句
*滑动验证:
所有评论(83)
ou大神 2018-10-30 10:15:16
感谢分享,code4app有你更精彩
回复
Wsdtg 2018-10-30 10:15:46
我是来学习的
回复
一人无 2018-10-30 10:15:50
mark,收藏了
回复
t8569 2018-10-30 10:16:06
code4app好的内容真的很多~赞
回复
BlueManlove 2018-10-30 10:16:33
感谢大神分享,必须顶!
回复
littleRed 2018-10-30 10:16:37
学习...学习...
回复
起个名字真难fz 2018-10-30 11:03:57
虽不明,但觉厉!
回复
code4app热心网友 2018-10-30 11:11:22
正需要啊,感谢楼主无私分享!
回复
ch974561714 2018-10-30 11:11:38
很给力,Code4App有你更精彩!
回复
提取码:  下载次数:123 状态:已购或VIP 售价:0(原价:15)金钱 下载权限:初级码农 
1543 1 123
联系我们
首页/微信公众账号投稿

帖子代码编辑/版权问题

QQ:435399051,742864542

如何获得代码达人称号?

代码贡献英雄榜
用户名 下载数
通过邮件订阅最新 Code4App 信息
上一条 /4 下一条
联系我们
关闭
合作电话:
13802416937
Email:
435399051@qq.com
商务市场合作/投稿
问题反馈及帮助
联系我们

广告投放| 广东互联网违法和不良信息举报中心|中国互联网举报中心|Github|申请友链|手机版|Code4App ( 粤ICP备15117877号-1 )

快速回复 返回顶部 返回列表