Latest 0.0.1
License MIT
Platforms ios , requires ARC
Dependencies SDWebImage

JDBannerView is a commonly used for loading both webImage and localImage.

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like WaterFlowCollectionViewLayout in your projects.

To integrate WaterFlowCollectionViewLayout into your Xcode project using CocoaPods, specify it in your Podfile:

target 'TargetName' do
pod 'JDBannerView', '~> 0.0.1'

How to use

You can use it like this:

NSArray *imageArray = @[
                        @{@"img" : @"pic1.jpg",
                            @"link" : @"pic1"},
                        @{@"img" : @"http://pic2.jpg",
                          @"link" : @"pic2"},
                        @{@"img" : @"https://pic3.jpg",
                          @"link" : @"pic3.jpg"},
    JDBannerView *bannerView = [[JDBannerView alloc] initWithImageArray:imageArray frame:CGRectMake(0, 200, self.view.bounds.size.width, 200)];
    [self.view addSubview:bannerView];

and you set a placeholderImage for loading webImage:

bannerView.placeholderImage = [UIImage imageNamed:@"placeholderImage"];

if you want to listen the click of image,you can write like the following:

bannerView.delegate = self;

- (void)bannerView:(JDBannerView *)bannerView didselectImageWithLink:(NSString *)link {

what’s more,you can custom the appearence by yourself.

@property (nonatomic, assign) BOOL needAutoScroll;

@property (nonatomic, assign) NSTimeInterval duration;

@property (nonatomic, strong) UIColor *currentPageIndicatorTintColor;

@property (nonatomic, strong) UIColor *pageIndicatorTintColor;




Released under the MIT license. See LICENSE for details.

Latest podspec

    "name": "JDBannerView",
    "version": "0.0.1",
    "summary": "JDBannerView is a commonly used banner.",
    "description": "A custom bannerView which can load webImage and localImage.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Ngmm_Jadon": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.0.1"
    "source_files": [
    "platforms": {
        "ios": null
    "ios": {
        "frameworks": [
    "requires_arc": true,
    "dependencies": {
        "SDWebImage": []

Pin It on Pinterest

Share This