title: I just had added UIButton to UIView. How can I get buttons index?
body: <p>I just had added UIButton to UIView. How can I get buttons index? Thank you , solved.</p>
  
  <p>i have a problem. Some UIButtons created with xib file. When i printed its value i get unreal index.
  @property (nonatomic, retain) IBOutlet UITextField *distanceTextField; 
  for example: index is equal to 2147483647 
  But when i add object programmatically i get real index. index is equal to 12. Why ? </p>