Skip to content

Commit

Permalink
1. Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo committed Nov 30, 2015
1 parent 8ada9f6 commit 6913222
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion LCBannerView.podspec
Expand Up @@ -2,7 +2,7 @@ Pod::Spec.new do |s|

s.name = "LCBannerView"
s.version = "1.0.0"
s.summary = "A simple progress HUD. Support: http://www.leodong.com"
s.summary = "A very popular and highly customized banner view! . Support: http://www.leodong.com"
s.homepage = "https://github.com/LeoiOS/LCBannerView"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "Leo" => "leoios@sina.com" }
Expand Down
35 changes: 19 additions & 16 deletions README.md
Expand Up @@ -10,7 +10,10 @@

## Introduction

This is a display of advertising or information. If you feel good, please give me a star⭐️.
This is a display of advertising or information.

⭐️ If you feel good, please give me a star, thank you!

You can using the images from **local** or **internet**.


Expand Down Expand Up @@ -52,32 +55,32 @@ Just drag the LCBannerView folder into your project.
})];

// 2. from local
// please find out from the demo.
// please find out the code from the demo
````
* Delegate (`@optional`):
````objc
- (void)bannerView:(LCBannerView *)bannerView didClickedImageIndex:(NSInteger)index;
````
For example:
````objc
- (void)bannerView:(LCBannerView *)bannerView didClickedImageIndex:(NSInteger)index {

NSLog(@"you clicked image in %@ at index: %ld", bannerView, (long)index);
}

// logs
2015-11-30 17:36:20.611 LCBannerViewDemo[6075:456257] you clicked image in <LCBannerView: 0x7fc98b751ff0; frame = (0 300; 375 200); layer = <CALayer: 0x7fc98b7521b0>> at index: 1
2015-11-30 17:36:21.292 LCBannerViewDemo[6075:456257] you clicked image in <LCBannerView: 0x7fc98b433190; frame = (0 20; 375 200); layer = <CALayer: 0x7fc98b42ce20>> at index: 1
2015-11-30 17:36:21.801 LCBannerViewDemo[6075:456257] you clicked image in <LCBannerView: 0x7fc98b751ff0; frame = (0 300; 375 200); layer = <CALayer: 0x7fc98b7521b0>> at index: 1
2015-11-30 17:36:22.380 LCBannerViewDemo[6075:456257] you clicked image in <LCBannerView: 0x7fc98b433190; frame = (0 20; 375 200); layer = <CALayer: 0x7fc98b42ce20>> at index: 1
For example:
````objc
- (void)bannerView:(LCBannerView *)bannerView didClickedImageIndex:(NSInteger)index {
NSLog(@"you clicked image in %@ at index: %ld", bannerView, (long)index);
}
// logs
2015-11-30 17:36:20.611 LCBannerViewDemo[6075:456257] you clicked image in <LCBannerView: 0x7fc98b751ff0; frame = (0 300; 375 200); layer = <CALayer: 0x7fc98b7521b0>> at index: 1
2015-11-30 17:36:21.292 LCBannerViewDemo[6075:456257] you clicked image in <LCBannerView: 0x7fc98b433190; frame = (0 20; 375 200); layer = <CALayer: 0x7fc98b42ce20>> at index: 1
2015-11-30 17:36:21.801 LCBannerViewDemo[6075:456257] you clicked image in <LCBannerView: 0x7fc98b751ff0; frame = (0 300; 375 200); layer = <CALayer: 0x7fc98b7521b0>> at index: 1
2015-11-30 17:36:22.380 LCBannerViewDemo[6075:456257] you clicked image in <LCBannerView: 0x7fc98b433190; frame = (0 20; 375 200); layer = <CALayer: 0x7fc98b42ce20>> at index: 1
````
## Support
* If you have some questions, please commit a issure! Thx!
* If you have any questions, please commit a issure! Thx!
* Email: leoios@sina.com
* Blog: http://www.leodong.com
### License
[MIT license](http://opensource.org/licenses/MIT)
[MIT](http://opensource.org/licenses/MIT)

0 comments on commit 6913222

Please sign in to comment.