What is a typedef enum in Objective-C?
Three things are being declared here: an anonymous enumerated type is declared, ShapeType is being declared a typedef for that anonymous enumeration, and the three names kCircle, kRectangle, and kOblateSpheroid are being declared as integral constants. Let’s break that down. In the simplest case, an enumeration can be declared as enum tagname { … }; … Read more