'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 => 'https://github.com/SDBannerView/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:
use_frameworks!
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];
####Caution:
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.
Can be found in the releases section of this repo.