Why does Xcode not allow this:
UILabel*redlabel,greenlable,bluelabel;
But likes this:
UILabel*redlabel;
UILabel*greenlabel;
UILabel*bluelabel;
You can do this with other classes so why not UILabel? It gives an error “interface type cannot be statically allocated”.
It will work: