title: Set enum or #define tag to an object in interface builder
body: <p>When you build a lot of equal object is a good design partner set a tag to identifier, so: </p>
  
  <pre><code>UITextField *object1, *object2;
  //Initialize it
  [object1 setDelegate:self];
  [object2 setDelegate:self];
  [object1 setTag: 1]; 
  [object2 setTag: 2];
  </code></pre>
  
  <p>To be more easy and "beautiful" understand the code, you can create a enum.</p>
  
  <pre><code>typedef enum {
        MyTextField1 = 1,
        MyTextField2
  } allTextField;
  </code></pre>
  
  <p>So, you will not put just a number and can set tag in this way:</p>
  
  <pre><code>[object1 setTag: MyTextField1];
  [object2 setTag: MyTextField2];
  </code></pre>
  
  <p>Than in any delegate function you can treat it more easy</p>
  
  <pre><code>- (BOOL)textFieldShouldClear:(UITextField *)textField {
     switch(textField.tag) {
         case MyTextField1: return YES;
         case MyTextField2: return NO;
     }
  }
  </code></pre>
  
  <p>But, when you will build in <code>Interface Builder</code> in XCode, you can set the tag in this field: </p>
  
  <p><img src="https://i.stack.imgur.com/nAmcE.png" alt="enter image description here"></p>
  
  <p>But if I set it, I will receive: </p>
  
  <p><img src="https://i.stack.imgur.com/13EDM.png" alt="enter image description here"></p>
  
  <p>There is no way to set the tag anything than a number in Interface Builder?</p>