Skip to content

Light banner view, support for changing datasource, image cache, CocoaPods.

License

Notifications You must be signed in to change notification settings

mistdon/SDBannerView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDBannerView

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.

About

Light banner view, support for changing datasource, image cache, CocoaPods.

Resources

License

Stars

Watchers

Forks

Packages

No packages published