iphone中的_cmd关键字

 

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);
 

 

 

 

你可能感兴趣的:(iPhone)