// Here the first use of my enumenum sizes { xs,s,m,l,xl,xxl,xxxl,xxxxl } myGrandMotherDressSize;// here the second use of my enum. It works now!enum sizes myGrandFatherPantSize;
你也可以在参数定义中使用它:
// Observe that here, I still use the enum- (void) buyANewDressToMyGrandMother:(enum sizes)theSize;