ADKModalMaskView Class Reference
| Inherits from | UIView |
|---|---|
| Declared in | ADKModalMaskView.h ADKModalMaskView.m |
Other Methods
– initWithView:
Generating a ADKModalMaskView to present your view.
- (instancetype)initWithView:(UIView *)viewParameters
view |
Assiging specific view that you want to present on the screen. |
|---|
Return Value
Instance of ADKModalMaskView.
Declared In
ADKModalMaskView.h
– initWithView:showInFullScreen:autoDismiss:modalColor:maskView:
Generating a ADKModalMaskView to present your view with specific modal color and set automatic dismiss mode at begin.
- (instancetype)initWithView:(UIView *)view showInFullScreen:(BOOL)showInFullScreen autoDismiss:(BOOL)isAuto modalColor:(UIColor *)color maskView:(UIView *)maskViewParameters
view |
Assiging specific view that you want to present on the screen. |
|---|---|
showInFullScreen |
Decide presnted view scaling mode. Yes means ADKModalMaskView will scale your view to full screen size. No means keep original size. |
isAuto |
Enable or disable automatic dismiss mode. Yes means enabled and NO means disable. |
color |
Decide a specific UIColor that you want to apply on ADKModalMaskView’s modal color. |
maskView |
Giving a specific view instance to replace original pure color. |
Return Value
Instance of ADKModalMaskView.
Declared In
ADKModalMaskView.h
– initWithView:autoDismiss:
Generating a ADKModalMaskView to present your view and set automatic dismiss mode at begin.
- (instancetype)initWithView:(UIView *)view autoDismiss:(BOOL)isAutoParameters
view |
Assiging specific view that you want to present on the screen. |
|---|---|
isAuto |
Enable or disable automatic dismiss mode. Yes means enabled and NO means disable. |
Return Value
Instance of ADKModalMaskView.
Declared In
ADKModalMaskView.h
– initWithView:showInFullScreen:modalColor:
Generating a ADKModalMaskView to present your view with specific modal color and set automatic dismiss mode at begin.
- (instancetype)initWithView:(UIView *)view showInFullScreen:(BOOL)showInFullScreen modalColor:(UIColor *)colorParameters
view |
Assiging specific view that you want to present on the screen. |
|---|---|
showInFullScreen |
Decide presented view scaling mode. Yes means ADKModalMaskView will scale your view to full screen size. No means keep original size. |
color |
Descirbe a specific UIColor that you want to apply on ADKModalMaskView’s modal color. |
Return Value
Instance of ADKModalMaskView.
Declared In
ADKModalMaskView.h
– initWithView:modalColor:
Generating a ADKModalMaskView to present your view with specific modal color.
- (instancetype)initWithView:(UIView *)view modalColor:(UIColor *)colorParameters
view |
Assiging specific view that you want to present on the screen. |
|---|---|
color |
Describe a specific UIColor that you want to apply on ADKModalMaskView’s modal color. |
Return Value
Instance of ADKModalMaskView.
Declared In
ADKModalMaskView.h
– initWithView:modalColor:autoDismiss:
Generating a ADKModalMaskView to present your view with specific modal color and set automatic dismiss mode at begin.
- (instancetype)initWithView:(UIView *)view modalColor:(UIColor *)color autoDismiss:(BOOL)isAutoParameters
view |
Assiging specific view that you want to present on the screen. |
|---|---|
color |
Describe a specific UIColor that you want to apply on ADKModalMaskView’s modal color. |
isAuto |
Enable or disable automatic dismiss mode. Yes means enabled and NO means disable. |
Return Value
Instance of ADKModalMaskView.
Declared In
ADKModalMaskView.h
– showInView:completion:
Present your modal view by ADKModalMaskView.
- (void)showInView:(UIView *)baseView completion:(void ( ^ ) ( BOOL finished ))completionParameters
baseView |
Presented view will show above a specific base view. |
|---|---|
completion |
This block will run when ADKModalMaskView did finish present. |
Declared In
ADKModalMaskView.h
– showInView:withAnimation:completion:
Present your modal view by ADKModalMaskView with aniamtion effect.
- (void)showInView:(UIView *)baseView withAnimation:(BOOL)animation completion:(void ( ^ ) ( BOOL finished ))completionParameters
baseView |
Presented view will show above a specific base view. |
|---|---|
animation |
Present ADKModalMaskView with animation effect or without animation. Yes means want to use animation effect. |
completion |
This block will run when ADKModalMaskView did finish present. |
Declared In
ADKModalMaskView.h
– dismiss:
Dismissing ADKModalMaskView manually.
- (void)dismiss:(void ( ^ ) ( BOOL finished ))completionParameters
completion |
This block will run when ADKModalMaskView did finish dismiss. |
|---|
Declared In
ADKModalMaskView.h
– dismiss:withAnimation:
Dismissing ADKModalMaskView manually and decide to use animation effect or not.
- (void)dismiss:(void ( ^ ) ( BOOL finished ))completion withAnimation:(BOOL)animationParameters
completion |
This block will run when ADKModalMaskView did finish dismiss. |
|---|---|
animation |
Dismiss ADKModalMaskView with animation effect or without animation. Yes means want to use animation effect. |
Declared In
ADKModalMaskView.h
Other Methods
modalColor
Describe a specific UIColor that you want to apply on ADKModalMaskView’s modal color.
@property (nonatomic, strong) UIColor *modalColorDeclared In
ADKModalMaskView.h
delegate
Assign a delegate owner for ADKModalMaskView. It will help you to do something before ADKModalMaskView dismiss or after dismiss.
@property (nonatomic, weak) id<ADKModalMaskViewDelegate> delegateDeclared In
ADKModalMaskView.h
modalMode
Decide which present mode will be using in ADKModalMaskView.
@property (nonatomic, assign) ADKModalMaskModeType modalModeDeclared In
ADKModalMaskView.h