How to use an 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:13 UTC
Read the original article
Hit count: 206
objective-c
For example I want to store this in an ivar:
CGFloat color[4] = {red, green, blue, 1.0f};
so I would 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