FBNativeAdTableViewCellProvider
เวอร์ชั่นที่ใหม่กว่าของคลาสนี้พร้อมแล้ว ตรวจสอบได้ เวอร์ชั่นล่าสุด

Class which assists in putting FBNativeAdViews into UITableViews. This class manages the creation of UITableViewCells which host native ad views. Functionality is provided to create UITableCellViews as needed for a given indexPath as well as computing the height of the cells.

Conforms to:UITableViewDataSource
Superclass:FBNativeAdTableViewAdProvider
Declared in:FBNativeAdTableViewCellProvider.h
วิธีการทันใจ
initWithManager:forType:

Method to create a FBNativeAdTableViewCellProvider.

พารามิเตอร์คำอธิบาย
manager

The naitve ad manager consumed by this provider

type

The type of this native ad template. For more information, consult FBNativeAdViewType.

- (instancetype)
initWithManager: (FBNativeAdsManager *)manager
forType: (FBNativeAdViewType)type;
ให้คำรับรองไว้ใน: FBNativeAdTableViewCellProvider.h
initWithManager:forType:forAttributes:

Method to create a FBNativeAdTableViewCellProvider.

พารามิเตอร์คำอธิบาย
manager

The naitve ad manager consumed by this provider

type

The type of this native ad template. For more information, consult FBNativeAdViewType.

attributes

The layout of this native ad template. For more information, consult FBNativeAdViewLayout.

- (instancetype)
initWithManager: (FBNativeAdsManager *)manager
forType: (FBNativeAdViewType)type
forAttributes: (FBNativeAdViewAttributes *)attributes
NS_DESIGNATED_INITIALIZER;
ให้คำรับรองไว้ใน: FBNativeAdTableViewCellProvider.h
tableView:cellForRowAtIndexPath:

Helper method for implementors of UITableViewDataSource who would like to host native ad UITableViewCells in their table view.

- (UITableViewCell *)
tableView: (UITableView *)tableView
cellForRowAtIndexPath: (NSIndexPath *)indexPath;
ให้คำรับรองไว้ใน: FBNativeAdTableViewCellProvider.h
tableView:estimatedHeightForRowAtIndexPath:

Helper method for implementors of UITableViewDelegate who would like to host native ad UITableViewCells in their table view.

- (CGFloat)
tableView: (UITableView *)tableView
estimatedHeightForRowAtIndexPath: (NSIndexPath *)indexPath;
ให้คำรับรองไว้ใน: FBNativeAdTableViewCellProvider.h
tableView:heightForRowAtIndexPath:

Helper method for implementors of UITableViewDelegate who would like to host native ad UITableViewCells in their table view.

- (CGFloat)
tableView: (UITableView *)tableView
heightForRowAtIndexPath: (NSIndexPath *)indexPath;
ให้คำรับรองไว้ใน: FBNativeAdTableViewCellProvider.h