RBBannerExtendView Class Reference

Inherits from RBBaseExtendView : UIView
Declared in RBBannerExtendView.h

Overview

An extend view that displays an image banner that grows when dragged.

  insetRatio

The amount of the banner to reveal when it is in the closed state. Default = 0.3.

@property (readonly) CGFloat insetRatio

Declared In

RBBannerExtendView.h

  effectDirectionOpenToClose

The direction of the effect. For example if this is YES they banner image will go from normal > blurred. If NO the reverse will occur. Default = YES.

@property (nonatomic) BOOL effectDirectionOpenToClose

Declared In

RBBannerExtendView.h

  effect

The effect for the banner. Default = RBBannerExtendViewEffectBlur.

@property (nonatomic) RBBannerExtendViewEffect effect

Declared In

RBBannerExtendView.h

  bannerImage

The banner image.

@property (nonatomic, nullable) UIImage *bannerImage

Declared In

RBBannerExtendView.h

  bannerImageContentMode

The banner image content mode. Defauilt

@property (nonatomic) UIViewContentMode bannerImageContentMode

Declared In

RBBannerExtendView.h

  pullIndicatorImage

The image to use to use for the pull to refresh indicator. Default = [[RBImageCenter shared] glyphImageWithName:@"arrow-down" tintColor:[UIColor darkGrayColor] size:@32].

@property (nonatomic, nonnull) UIImage *pullIndicatorImage

Declared In

RBBannerExtendView.h

  pullIndicatorAnimator

The animator to use when animating the pullIndicatorImage. Default = [RBAnimator defaultSpringAnimator].

@property (nonatomic, nonnull) RBAnimator *pullIndicatorAnimator

Declared In

RBBannerExtendView.h

  refreshIndicatorViewStyle

The style of the refresh indicator. Default = UIActivityIndicatorViewStyleWhite.

@property (nonatomic) UIActivityIndicatorViewStyle refreshIndicatorViewStyle

Declared In

RBBannerExtendView.h

  allowOpening

Whether or not to allow the extend view to be set to the opened state. In effect allow pull to refresh functionality. Default = YES. If you would just like a banner set this to NO.

@property (nonatomic) BOOL allowOpening

Declared In

RBBannerExtendView.h

– initWithInsetRatio:

Creates a new RBBannerExtendView with the given inset ratio. Banners are sized to equal the size of the RBScrollView they are attached to. Note this includes core subclasses such as RBLazyLayoutView, RBLayoutView, RBManagedFormView… The inset ratio determines how much of the banner to reveal by default as a 0 - 1 percentage. By default the openRevealFactor is set to equal 0.3.

- (nonnull instancetype)initWithInsetRatio:(CGFloat)insetRatio

Parameters

insetRatio

The inset ratio. (0 - 1).

Return Value

The newly initialized RBBannerExtendView.

Declared In

RBBannerExtendView.h

– performLayout

For subclasses implement this method to modify the banners UI. This is called automatically on changes. All changes and updates should occur here rather than in layoutSubviews.

- (void)performLayout

Declared In

RBBannerExtendView.h