title: Objective C - Getter and setter properties for enum
body: <p>I am a complete newbie at Objective-C. I have an enum as follows:</p>
  
  <pre><code>typedef enum _XLBadgeManagedType {
      XLInboxManagedMethod = 0,
      XLDeveloperManagedMethod = 1
  } XLBadgeManagedType ;
  </code></pre>
  
  <p>I want to have getter and setter methods for it, such that if something happens, I set <code>XLInboxManagedMethod</code> to 1. How would I go about doing it?</p>