I have this method that makes a call to another method. How to I pass the char[] to it instead of having the char[] inside it?
- (IBAction)goThere(id)sender {
// char hex[] = {0xFF, 0xFF, 0x15}; <-- this is what I want to pass to elseWhere
// NSString *text = "some string"; <-- it would be cool to send other things too.
[self elseWhere];
}
- (void)elseWhere {
char hex[] = {0xDA, 0xFF, 0x15};
...
}
Ideally I would be able to send char[] from goThere, being able to re-use the char[] as needed, unfortunately i’m not advanced in this. thanks
Try this: