I want to create an object called Note. Then I want to assign some values ββto it and display them in the console to make sure that all this works correctly.
Note.h
After that, in another class, I want to assign some values ββto the fields.
-(void) configNote:(Note*)not { not = [Note alloc]; [not setPosition:[NSNumber numberWithInt:2]]; [not setSyllable:@"Twin-"]; } ..... Note *note; [self configNote:note]; NSLog(@" pos : %d syl : %@ ",[[note position] integerValue],[note syllable]);
I tried using @synthesize instead of @dynamic , but nothing changes anyway. The cause of the error is: -[Note setPosition:]: unrecognized selector sent to instance 0x733d060
source share