Latest 1.1.0
Homepage https://github.com/momo13014/SDBannerView
License MIT
Platforms ios 7.0
Authors

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.

image

Installation

From Cocoapods

pod 'SDBannerView'

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

pod 'SDBannerView', :git => 'https://github.com/SDBannerView/SDBannerView.git'

This pulls from the master branch directly.

Second, install SDBannerView into your project:

pod install

Carthage

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).

Swift

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:

use_frameworks!

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

Usage

(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];

Caution:

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

self.automaticallyAdjustsScrollViewInsets = NO;

License

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": "https://github.com/momo13014/SDBannerView",
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    },
    "authors": {
        "shendong": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/momo13014/SDBannerView.git",
        "tag": "1.1.0"
    },
    "source_files": "Classes/*.{h,m}",
    "resources": "Classes/SDBannerView.bundle"
}

Pin It on Pinterest

Share This