【发布时间】:2009-12-01 23:44:05
【问题描述】:
我见过很多苹果的 .h(私有 API)。大多数变量/结构/枚举/类都有_作为前缀。
#import <Foundation/NSValue.h>
#import <Foundation/NSObjCRuntime.h>
@class NSString;
typedef struct _NSRange {
NSUInteger location;
NSUInteger length;
} NSRange;
我的问题是,
使用正确的下划线和 typedef 再次给出它们的原因是什么?
【问题讨论】: