How to use a C array as instance variable?

Posted by mystify on Stack Overflow See other posts from Stack Overflow or by mystify
Published on 2010-04-22T13:11:45Z Indexed on 2010/04/22 15:53 UTC
Read the original article Hit count: 167

Filed under:

For example I want to store this in an ivar:

CGFloat color[4] = {red, green, blue, 1.0f};

so would I put this in my header?

CGFloat color[];

How would I assign values to that guy later? I mean I can't change it, right?

© Stack Overflow or respective owner

Related posts about objective-c