Latest 1.1.1
Homepage https://github.com/yangKJ/KJBannerViewDemo
License Copyright (c) 2018 yangkejun
Platforms ios , requires ARC
Frameworks Foundation, UIKit
Authors
  • 这个工程提供了轮播Banner,自带图片下载、缓存相关功能
  • 无任何第三方依赖、轻量级组件
  • pod ‘KJBannerView’

相关Demo下载地址

[Demo下载地址](https://github.com/yangKJ/KJBannerViewDemo

简书地址

[简书地址](https://www.jianshu.com/u/c84c00476ab6

Bug解决

1、Cannot synthesize weak property because the current deployment target does not support weak references

  • 解决方案:
  • 1、项目 -> TARGETS -> Build Settings -> 搜索 Weak References in Manual Retain Release 改为YES
  • 2、如果不行,在podfile文件底下加入下面的代码,’8.0’是对应的部署目标(deployment target)删除库重新pod
##################加入代码##################
post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] ='8.0'
        end
    end
end
##################加入代码##################

版本更新日志

版本1.1.1

  • 新增支持Swift宏
  • 新增Block代理点击事件 KJBannerViewBlock
  • 新增设置滚动方向属性 rollType

版本1.1.0

  • 新增 支持自定义Cell
  • 使用方法:
    • 创建从KJBannerViewCell继承的Cell
    • 在model设置数据
- (instancetype)initWithFrame:(CGRect)frame{
    if (self=[super initWithFrame:frame]) {
        [self.contentView addSubview:self.NameLabel];
    }
    return self;
}
- (void)setModel:(NSObject *)model{
    KJBannerModel *kj_model = (KJBannerModel*)model;
    self.NameLabel.text = kj_model.customTitle;
}

版本 1.0.2

  • 新增 KJBannerView 轮播图 – banner支持缩放
  • 自带图片下载、缓存相关功能,无任何第三方依赖、轻量级组件
    轮播图

Latest podspec

{
    "name": "KJBannerView",
    "version": "1.1.1",
    "summary": "Banner",
    "homepage": "https://github.com/yangKJ/KJBannerViewDemo",
    "license": "Copyright (c) 2018 yangkejun",
    "authors": {
        "77": "[email protected]"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/yangKJ/KJBannerViewDemo.git",
        "tag": "1.1.1"
    },
    "social_media_url": "https://www.jianshu.com/u/c84c00476ab6",
    "requires_arc": true,
    "ios": {
        "source_files": "KJBannerViewDemo/KJBannerHeader.h"
    },
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "subspecs": [
        {
            "name": "Classes",
            "source_files": "KJBannerViewDemo/Classes/**/*.{h,m}",
            "public_header_files": [
                "KJBannerViewDemo/Classes/**/*.h",
                "KJBannerViewDemo/Classes/*.h"
            ]
        }
    ]
}

Pin It on Pinterest

Share This