mLineType = 10,
Now you know how to create enum, how do you use it though ? You create a class say MyChart and have ChartType as one of the member variable.
@interface MyChart : UIView
@property(nonatomic,assign) ChartType type;
Now you have create an instance of MyChart and define its type as following.
MyChart *chart =[[MyChart alloc]initWithFrame:a];
Now there is this unique problems in enums you may come across sometime that what if 2 enums ended up having some values same, your code will show ERROR, how to solve this ? See you in NEXT ARTICLE.