RBPresentationContext Class Reference
Inherits from | NSObject |
---|---|
Declared in | RBPresentationContext.h |
delegate
A delegate that is issued dismissal requests from the context.
@property (nonatomic, weak, nullable) id<RBPresentationContextDelegate> delegate
Discussion
A delegate that is issued dismissal requests from the context.
Declared In
RBPresentationContext.h
animator
The RBPresentationAnimator
object that is responsible for presentation and dismissal transitions.
@property (nonatomic, readonly, nullable) RBPresentationAnimator *animator
Discussion
The RBPresentationAnimator
object that is responsible for presentation and dismissal transitions.
Declared In
RBPresentationContext.h
state
The current state of the presentation context.
@property (nonatomic, readonly) RBPresentationState state
Discussion
The current state of the presentation context.
Declared In
RBPresentationContext.h
viewController
The UIViewController
being presented.
@property (nonatomic, readonly, nonnull) UIViewController *viewController
Discussion
The UIViewController
being presented.
Declared In
RBPresentationContext.h
containerViewController
The presenting UIViewController
in which the presentation occurs.
@property (nonatomic, readonly, nonnull) UIViewController *containerViewController
Discussion
The presenting UIViewController
in which the presentation occurs.
Declared In
RBPresentationContext.h
doesRequireOrientationLock
Whether or not the presentation requires that the UI orientation is locked.
@property (nonatomic, readonly) BOOL doesRequireOrientationLock
Discussion
Whether or not the presentation requires that the UI orientation is locked.
Declared In
RBPresentationContext.h
data
Logistical presentation data storage.
@property (nonatomic, readonly, nullable) NSDictionary *data
Discussion
Logistical presentation data storage.
Declared In
RBPresentationContext.h
– initWithView:containerView:layoutBlock:usingAnimator:
Creates a new presentation context.
- (nonnull instancetype)initWithView:(nonnull UIViewController *)viewController containerView:(nonnull UIViewController *)containerViewController layoutBlock:(nonnull PresentationLayoutBlock)layoutBlock usingAnimator:(nonnull RBPresentationAnimator *)animator
Parameters
viewController |
The |
---|---|
containerViewController |
The containing |
layoutBlock |
The block that is called to determine the frame to position the presented view controller in. |
animator |
The |
Return Value
The configured presentation context.
Discussion
Creates a new presentation context.
Declared In
RBPresentationContext.h
– bringViewsToFront
Brings all of views that constitute the presentation to the front.
- (void)bringViewsToFront
Discussion
Brings all of views that constitute the presentation to the front.
Declared In
RBPresentationContext.h