Latest 1.1.0
License MIT
Platforms ios 7.0

Pod Version
Pod Platform
Pod License
Carthage compatible

‘SDBannerView’ is a simple, powerful banner view, support for data cached, by the way, you can load image from local or remote.



From Cocoapods

pod 'SDBannerView'

If you want to use the latest features of SDBannerView use normal external source dependencies.

pod 'SDBannerView', :git => ''

This pulls from the master branch directly.

Second, install SDBannerView into your project:

pod install


Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate SDBannerView into your Xcode project using Carthage, specify it in your Cartfile:

github "SDBannerView/SDBannerView"

Run carthage update to build the framework and drag the built SDBannerView.framework (in Carthage/Build/iOS folder) into your Xcode project (Linked Frameworks and Libraries in Targets).


Even though SDBannerView is written in Objective-C, it can be used in Swift with no hassle. If you use CocoaPods add the following line to your Podfile:


If you added SDBannerView manually, just add a bridging header file to your project with the SDBannerView header included.


(see sample Xcode porject in ‘/SDBannerView’)

you can create it with hard code or xib.

Then you can set its images for SDBannerView. whatever local images or remote images

#import <SDBannerView/SDBannerView.h>

[banner setCurrentIndexDidTap:^(NSInteger index) {
    NSLog(@"index = %ld",index);
[self.view addSubview:banner];
[banner setImages:array];


If you create it with XIB or Storyboard, just put the below code where -(void)willAppear or -(void)viewDidLoad;

self.automaticallyAdjustsScrollViewInsets = NO;


TSMessages is available under the MIT license. See the LICENSE file for more information.

Recent Changes

Can be found in the releases section of this repo.

Latest podspec

    "name": "SDBannerView",
    "version": "1.1.0",
    "summary": "Light banner view, support for changing datasource, image cache.",
    "description": ""Light banner view, support for changing datasource, image cache, support for CocoaPods and Carthage.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    "authors": {
        "shendong": "[email protected]"
    "platforms": {
        "ios": "7.0"
    "source": {
        "git": "",
        "tag": "1.1.0"
    "source_files": "Classes/*.{h,m}",
    "resources": "Classes/SDBannerView.bundle"

Pin It on Pinterest

Share This