我有一个这样的头文件:
@class NSMutableDictionary, NSString;
@interface randomclassname : NSObject
{
unsigned long long _HTTPMethod;
NSString *_path;
unsigned long long _apiVersion;
NSMutableDictionary *_parameters;
NSMutableDictionary *_defaultParameters;
NSMutableDictionary *_headers;
_Bool _isSigned;
}
/// methods are down here
+ (id)builderWithHTTPMethod:(unsigned long long)arg1 path:(id)arg2;
我想访问和打印NSMutableDictionary *_defaultParameters;
和
unsigned long long _apiVersion;
我的方法对象中的以下属性。
+ (id)builderWithHTTPMethod:(unsigned long long)arg1 format:(id)arg2
{
**access those properties here and print them on NSlog.**
return %orig;
}
如果我错了,请随时纠正我。我不完全确定@interface 中的东西是否称为属性;我正在猜测。但这就是我要访问的内容。