我是目标C的新鲜事。
I need to know how to access the instance variable using the accessors. I could able to access integer variables but not the character variable which i have declared here. Please correct if there is any wrong in this code below.
#define SIZE = 4096
@interface data : NSObject
{
unsigned char id[SIZE];
}
@property(readwrite)unsigned char id[SIZE];
@end
@implementation data
@synthesize unsigned char id[SIZE];
@end
main.m
someClass* classPointer = [[someClass alloc]init];
data* dt = [[data alloc]init];
[classPointer createMessage:data.id];