iphone中的_cmd关键字
Every method call also passes two hidden arguments: an id named self and a SEL named _cmd .
You can use NSStringFromSelector to convert the method selector to an NSString:
NSStringFromSelector(_cmd);
本文探讨了Objective-C中_cmd关键字的作用与用法,并通过实例展示了如何使用NSStringFromSelector将方法选择器转换为NSString。
iphone中的_cmd关键字
Every method call also passes two hidden arguments: an id named self and a SEL named _cmd .
You can use NSStringFromSelector to convert the method selector to an NSString:
NSStringFromSelector(_cmd);

被折叠的 条评论
为什么被折叠?