//
// UIViewController+AppearLog.m
// iCemarose
//
// Created by lee on 2017/5/18.
// Copyright © 2017年 kollway. All rights reserved.
//
#import "UIViewController+AppearLog.h"
#import <Aspects/Aspects.h>
@implementation UIViewController (AppearLog)
#if DEBUG || 1
+ (void)load
{
[self aspect_hookSelector:@selector(viewWillAppear:) withOptions:AspectPositionInstead usingBlock:^(id<AspectInfo> info, BOOL animated) {
NSInvocation *invocation = info.originalInvocation;
NSLog(@"logViewWillAppear: %@",NSStringFromClass([invocation.target class]));
[invocation invoke];
} error:nil];
}
#endif
@end