炼仙传说+春节皮肤
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// HWPopTransitioningDelegate.h
|
||||
// HWPopController
|
||||
//
|
||||
// Created by heath wang on 2019/5/21.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "HWPopController.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface HWPopTransitioningDelegate : NSObject <UIViewControllerTransitioningDelegate>
|
||||
|
||||
@property (nonatomic, weak, readonly) HWPopController *popController;
|
||||
|
||||
- (instancetype)initWithPopController:(HWPopController *)popController NS_DESIGNATED_INITIALIZER;
|
||||
|
||||
- (instancetype)init NS_UNAVAILABLE;
|
||||
- (instancetype)new NS_UNAVAILABLE;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
@@ -0,0 +1,32 @@
|
||||
//
|
||||
// HWPopTransitioningDelegate.m
|
||||
// HWPopController
|
||||
//
|
||||
// Created by heath wang on 2019/5/21.
|
||||
//
|
||||
|
||||
#import "HWPopTransitioningDelegate.h"
|
||||
#import "HWPopControllerAnimatedTransitioning.h"
|
||||
|
||||
@implementation HWPopTransitioningDelegate
|
||||
|
||||
- (instancetype)initWithPopController:(HWPopController *)popController {
|
||||
self = [super init];
|
||||
if (self) {
|
||||
_popController = popController;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
#pragma mark - UIViewControllerTransitioningDelegate
|
||||
|
||||
- (nullable id <UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source {
|
||||
return [[HWPopControllerAnimatedTransitioning alloc] initWithState:HWPopStatePop popController:self.popController];
|
||||
}
|
||||
|
||||
- (nullable id <UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController *)dismissed {
|
||||
return [[HWPopControllerAnimatedTransitioning alloc] initWithState:HWPopStateDismiss popController:self.popController];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user