例如想修改UIDevice.h 中 name 的值 要怎么做呢? @interface UIDevice : NSObject
@property(nonatomic,readonly,retain) NSString *name; // e.g. “My iPhone” @property(nonatomic,readonly,retain) NSString *model; // e.g. @“iPhone”, @“iPod touch” @property(nonatomic,readonly,retain) NSString *localizedModel; // localized version of model @property(nonatomic,readonly,retain) NSString *systemName; // e.g. @“iOS” @property(nonatomic,readonly,retain) NSString *systemVersion; // e.g. @“4.0”
error: function definition is not allowed here
NSString *newDescription(id self, SEL _cmd) {
^
device.mm:467:22: error: use of undeclared identifier ‘newDescription’
&newDescription, &oldDescription
^
2 errors generated.