UIViewController+AppearLog.m 547 Bytes
Newer Older
lee committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
//
//  UIViewController+AppearLog.m
//  iCemarose
//
//  Created by lee on 2017/5/18.
//  Copyright © 2017年 kollway. All rights reserved.
//

#import "UIViewController+AppearLog.h"
#import <JRSwizzle/JRSwizzle.h>

@implementation UIViewController (AppearLog)

+ (void)load
{
    [self jr_swizzleMethod:@selector(viewWillAppear:) withMethod:@selector(logViewWillAppear:) error:nil];
}

- (void)logViewWillAppear:(BOOL) animated
{
    NSLog(@"logViewWillAppear: %@",NSStringFromClass([self class]));
    [self logViewWillAppear:animated];
}
@end