1.nslog打印方法出来

NSLog(@"%@",NSStringFromSelector(_cmd));

2.debug模式下打印一些信息,release模式下则不打印

#if DEBUG

    #define NSLog(FORMAT, ...) fprintf(stderr,"\nfunction:%s line:%d content:%s\n", __FUNCTION__, __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);

    #else

    #define NSLog(FORMAT, ...) nil

    #endif