CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

SDBannerView 1.1.0

SDBannerView 1.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2017

Maintained by Allen Shen, shendong.



  • By
  • shendong

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

image

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.