Below is the enum I created in the header file of my Ball class:
typedef enum {
redBall = 0,
blueBall = 1,
greenBall = 2
}ballTypes;
and in the interface:
ballTypes ballType;
in the init method of Ball.mm I initialized ballType as follows:
ballType = 0;
I get the following error:
Assigning to 'ballTypes' from incompatible type 'int'
How can I solve this?