title: Where to create and how to use Enum in iOS?
body: <p>I have started learning iOS development.</p>
  
  <p>I want to use <code>enum</code> in my sample project.</p>
  
  <p>I've declared <code>enum</code> in <code>sample.h</code> like following. I hope I've declared this correctly.</p>
  
  <pre><code>typedef enum{s=1,m,t,w,th,f,sa} days;
  </code></pre>
  
  <p>I want to use this in <code>viewController.m</code>. In <code>viewController.h,</code> I've imported <code>sample.h</code>.</p>
  
  <p>I want to use enum with the name like <code>"days.sa"</code>. But more code i searched in google, they've said like create a instance variable in <code>"sample.h"</code> like</p>
  
  <pre><code>@interface Sample:NSObject
  {
      days d;
  }
  </code></pre>
  
  <p>If I want to use this means, I need to create and use instance. But I don't want like that.</p>
  
  <p>I need to use like</p>
  
  <pre><code>days.d or days.sa or days.th
  </code></pre>
  
  <p>How to do that ?, This must be used for the whole Project and</p>
  
  <p><strong>How to create enum as class variable instead of instance variable ?</strong></p>