|
//
// bannerCell.h
// ThePaperHD
//
// Created by scar1900 on 15/1/26.
// Copyright (c) 2015年 scar1900. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AsyncImageView.h"
@protocol bannerCellDelgate <NSObject>
@optional
- (void)loadAdFailed:(NSIndexPath*)indexPath isHeadCell:(BOOL)isHeadCell;
- (void)clickAdd:(remotePushBO*)pushBO indexPath:(NSIndexPath*)indexPath;
- (void)loadAdSuccess:(NSIndexPath*)indexPath isHeadCell:(BOOL)isHeadCell;
@end
@interface bannerCell : UITableViewCell
@property(nonatomic, strong)NSString *adUrl;
@property(nonatomic, assign)BOOL isHeadCell;
@property(nonatomic, weak)id<bannerCellDelgate> delegate;
@property(nonatomic, strong)NSIndexPath *indexPath;
@property(nonatomic, assign)CGFloat imageScale;
@property(nonatomic, strong)AsyncImageView *bannerView;
@property(nonatomic, strong)UITapGestureRecognizer *tap;
- (void)disableAdTap;
@end
|