TKCardModalViewController Class Reference
| Inherits from | TKCustomPresentationViewController : UIViewController |
| Conforms to | UICollisionBehaviorDelegate |
| Declared in | TKCardModalViewController.h TKCardModalViewController.m |
Overview
TKCardModalViewController is a custom presented UIViewController
with a main white card view that drops in and can be easily dismissed
similiar to a UIAlertView.
Tasks
Other Methods
-
contentViewproperty -
backgroundViewproperty -
throwToDismissEnabledproperty -
tapToDismissEnabledproperty -
onlyAllowTapOffCardToDismissproperty -
visibleFrameproperty -
velocityproperty -
animatorproperty -
attachmentBehaviorproperty -
pushBehaviorproperty -
itemBehaviorproperty -
– keyboardWillShow: -
– keyboardWillHide: -
– show -
– hide -
– tapped: -
– pan:
Other Methods
Properties
animator
The animator that controls the card physics animation.
@property (nonatomic, strong) UIDynamicAnimator *animatorDeclared In
TKCardModalViewController.hattachmentBehavior
The animator that controls the card physics animation.
@property (nonatomic, strong) UIAttachmentBehavior *attachmentBehaviorDeclared In
TKCardModalViewController.hbackgroundView
The background view that appears behind the content view. Place and snapshots or backdrops here.
@property (nonatomic, strong) UIView *backgroundViewDeclared In
TKCardModalViewController.hcontentView
The main card view that appears that content should be placed on.
@property (nonatomic, strong) UIView *contentViewDeclared In
TKCardModalViewController.hitemBehavior
The item behavior of the card.
@property (nonatomic, strong) UIDynamicItemBehavior *itemBehaviorDeclared In
TKCardModalViewController.honlyAllowTapOffCardToDismiss
Flag to only allow the user to tap off the card and not on the contentView itself. Default is FALSE.
@property (nonatomic, assign) BOOL onlyAllowTapOffCardToDismissDeclared In
TKCardModalViewController.hpushBehavior
The push behavior from the velocity of the pan gesture.
@property (nonatomic, strong) UIPushBehavior *pushBehaviorDeclared In
TKCardModalViewController.htapToDismissEnabled
Flag to enabled tap to dismiss the card. Default is TRUE.
@property (nonatomic, assign) BOOL tapToDismissEnabledDeclared In
TKCardModalViewController.hthrowToDismissEnabled
Flag that allows the the user to throw the card off to dismiss it. Default is TRUE.
@property (nonatomic, assign) BOOL throwToDismissEnabledDeclared In
TKCardModalViewController.hInstance Methods
dismissTransitionAnimation:containerView:toViewController:
Subclass this method to create a custom dismissal transition.
- (void)dismissTransitionAnimation:(id<UIViewControllerContextTransitioning>)transitionContext containerView:(UIView *)containerView toViewController:(UIViewController *)viewControllerParameters
- transitionContext
The
UIViewControllerContextTransitioningthat governs the presentation.
- containerView
The container view to place this view controller’s view.
- toViewController
The parent view controller.
Declared In
TKCustomPresentationViewController.hkeyboardWillHide:
A notification callback that a keyboard will hide.
- (void)keyboardWillHide:(NSNotification *)notificationParameters
- notification
The
NSNotificationsender.
Declared In
TKCardModalViewController.hkeyboardWillShow:
A notification callback that a keyboard will be shown.
- (void)keyboardWillShow:(NSNotification *)notificationParameters
- notification
The
NSNotificationsender.
Declared In
TKCardModalViewController.hpan:
The function called when a pan gesture is called. For subclassing.
- (void)pan:(UIPanGestureRecognizer *)gestureParameters
- gesture
The
UIPanGestureRecognizersender.
Declared In
TKCardModalViewController.hpresentTransitionAnimation:containerView:fromViewController:
Subclass this method to create a custom presentation transition.
- (void)presentTransitionAnimation:(id<UIViewControllerContextTransitioning>)transitionContext containerView:(UIView *)containerView fromViewController:(UIViewController *)viewControllerParameters
- transitionContext
The
UIViewControllerContextTransitioningthat governs the presentation.
- containerView
The container view to place this view controller’s view.
- fromViewController
The parent view controller.
Declared In
TKCustomPresentationViewController.h