Combining UILabel declarations onto one line
3 answers
By writing this:, UILabel *redlabel, greenlable, bluelabel;
you are simply declaring a pointer to UILabel
and two UILabel
s, not pointers.
This is equivalent to writing:
UILabel *redlabel;
UILabel greenlabel;
UILabel bluelabel;
Try this instead, you need all three to be pointers:
UILabel *redlabel, *greenlable, *bluelabel;
+7
user971401
source
to share