我见过很多苹果的 .h(私有 API)。大多数变量/结构/枚举/类都有 _ 作为前缀。
#import <Foundation/NSValue.h>
#import <Foundation/NSObjCRuntime.h>
@class NSString;
typedef struct _NSRange {
NSUInteger location;
NSUInteger length;
} NSRange;
我的问题是,
用正确的下划线和 typedef 再次给出它们的原因是什么?