Skip to content

Commit

Permalink
Demo code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo committed Jul 29, 2016
1 parent f8b2c6f commit c4ffc12
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions LCBannerViewDemo/ViewController.m
Expand Up @@ -39,15 +39,15 @@ - (void)viewDidLoad {
pageIndicatorTintColor:[UIColor whiteColor]];
bannerView.pageDistance = 20.0f;

// bannerView.didClickedImageIndexBlock = ^(LCBannerView *bannerView, NSInteger index) {
//
// NSLog(@"Block: Clicked image in %p at index: %d", bannerView, (int)index);
// };
//
// bannerView.didScrollToIndexBlock = ^(LCBannerView *bannerView, NSInteger index) {
//
// NSLog(@"Block: Scrolled in %p to index: %d", bannerView, (int)index);
// };
bannerView.didClickedImageIndexBlock = ^(LCBannerView *bannerView, NSInteger index) {

NSLog(@"Block: Clicked image in %p at index: %d", bannerView, (int)index);
};

bannerView.didScrollToIndexBlock = ^(LCBannerView *bannerView, NSInteger index) {

NSLog(@"Block: Scrolled in %p to index: %d", bannerView, (int)index);
};

// bannerView.notScrolling = YES;
self.bannerView1 = bannerView;
Expand Down Expand Up @@ -107,14 +107,14 @@ - (void)changed {
[self.view addSubview:label];
}

- (void)bannerView:(LCBannerView *)bannerView didClickedImageIndex:(NSInteger)index {

NSLog(@"Delegate: Clicked image in %p at index: %d", bannerView, (int)index);
}

- (void)bannerView:(LCBannerView *)bannerView didScrollToIndex:(NSInteger)index {

NSLog(@"Delegate: Scrolled in %p to index: %d", bannerView, (int)index);
}
//- (void)bannerView:(LCBannerView *)bannerView didClickedImageIndex:(NSInteger)index {
//
// NSLog(@"Delegate: Clicked image in %p at index: %d", bannerView, (int)index);
//}
//
//- (void)bannerView:(LCBannerView *)bannerView didScrollToIndex:(NSInteger)index {
//
// NSLog(@"Delegate: Scrolled in %p to index: %d", bannerView, (int)index);
//}

@end

0 comments on commit c4ffc12

Please sign in to comment.