fixed: 1.适配小屏幕机型
feature: 1.忘记密码新增语音和短信验证码切换功能
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// UIViewController+Swizzling.m
|
||||
// IfishTests
|
||||
//
|
||||
// Created by JiangXuefei on 2019/3/13.
|
||||
// Copyright © 2019年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import "UIViewController+Swizzling.h"
|
||||
#import <objc/runtime.h>
|
||||
|
||||
@implementation UIViewController (Swizzling)
|
||||
|
||||
+ (void)load
|
||||
{
|
||||
#ifdef DEBUG
|
||||
Method viewWillAppear = class_getInstanceMethod(self, @selector(viewWillAppear:));
|
||||
Method logViewWillAppear = class_getInstanceMethod(self, @selector(logViewWillAppear:));
|
||||
method_exchangeImplementations(viewWillAppear, logViewWillAppear);
|
||||
#endif
|
||||
}
|
||||
|
||||
- (void)logViewWillAppear:(BOOL)animated
|
||||
{
|
||||
NSLog(@"========>%@ will appear",NSStringFromClass([self class]));
|
||||
[self logViewWillAppear:animated];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user