forked from shaojiankui/JKCategories
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UIViewController+MJPopupViewController.h
41 lines (29 loc) · 1.29 KB
/
UIViewController+MJPopupViewController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// UIViewController+MJPopupViewController.h
// MJModalViewController
//
// Created by Martin Juhasz on 11.05.12.
// Copyright (c) 2012 martinjuhasz.de. All rights reserved.
//
#import <UIKit/UIKit.h>
@class MJPopupBackgroundView;
typedef NS_ENUM(NSInteger, MJPopupViewAnimation) {
MJPopupViewAnimationFade = 0,
MJPopupViewAnimationSlideBottomTop = 1,
MJPopupViewAnimationSlideBottomBottom,
MJPopupViewAnimationSlideTopTop,
MJPopupViewAnimationSlideTopBottom,
MJPopupViewAnimationSlideLeftLeft,
MJPopupViewAnimationSlideLeftRight,
MJPopupViewAnimationSlideRightLeft,
MJPopupViewAnimationSlideRightRight,
};
@interface UIViewController (MJPopupViewController)
@property (nonatomic, retain) UIViewController *mj_popupViewController;
@property (nonatomic, retain) MJPopupBackgroundView *mj_popupBackgroundView;
- (void)presentPopupViewController:(UIViewController*)popupViewController animationType:(MJPopupViewAnimation)animationType;
- (void)presentPopupViewController:(UIViewController*)popupViewController animationType:(MJPopupViewAnimation)animationType backgroundTouch:(BOOL)enable dismissed:(void(^)(void))dismissed;
- (void)dismissPopupViewControllerWithanimationType:(MJPopupViewAnimation)animationType;
@end
@interface MJPopupBackgroundView : UIView
@end