FBNativeAdScrollView
A more recent version of this class is available. Check out the latest version.
Typedefs
FBNativeAdScrollView

This is a method to create a native ad horizontal scroll view from a user provided view.

@interface FBNativeAdScrollView : UIView
@property (nonatomic,
assign,
readonly) NSUInteger maximumNativeAdCount;
@property (nonatomic,
assign,
getter=isAnimationEnabled) BOOL animationEnabled;
@property (nonatomic,
assign) CGFloat xInset;
@property (nonatomic,
assign,
getter=isAdPersistenceEnabled) BOOL adPersistenceEnabled;
@property (nonatomic,
weak) UIViewController *viewController;
@property (nonatomic,
weak) id<FBNativeAdDelegate> delegate;
- (instancetype)initWithNativeAdsManager:(FBNativeAdsManager *)manager withType:(FBNativeAdViewType)type;
- (instancetype)initWithNativeAdsManager:(FBNativeAdsManager *)manager withType:(FBNativeAdViewType)type withAttributes:(FBNativeAdViewAttributes *)attributes;
- (instancetype)initWithNativeAdsManager:(FBNativeAdsManager *)manager withType:(FBNativeAdViewType)type withAttributes:(FBNativeAdViewAttributes *)attributes withMaximum:(NSUInteger)maximumNativeAdCount;
- (instancetype)initWithNativeAdsManager:(FBNativeAdsManager *)manager withViewProvider:(UIView *(^)(FBNativeAd *nativeAd,
NSUInteger position))childViewProvider;
- (instancetype)initWithNativeAdsManager:(FBNativeAdsManager *)manager withViewProvider:(UIView *(^)(FBNativeAd *nativeAd,
NSUInteger position))childViewProvider withMaximum:(NSUInteger)maximumNativeAdCount;
@@end
Discussion:

If adding this view to a XIB or Storyboard, you may recieve the error "Unknown class FBNativeAdScrollView in Interface Builder file" in some cases. This error is caused by the linker failing to include FBNativeAdScrollView in your build. To resolve this, call [FBNativeAdScrollView class] in your project, or add "-all_load -ObjC" to "Other Linker Flags" in your project settings.

Declared In: FBNativeAdScrollView.h