title: How to add a UIView to an UIAlertView?
body: <p>I have to create a custom <code>AlertView</code> with a view that contain some label. I create the .h and .m of <code>CustomAlert</code></p>
  
  <p>this is the <code>CustomAlert.h</code>.</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  
  @interface CustomAlert: UIView
  
  @property (nonatomic, weak) IBOutlet UILabel *ok;
  @property (nonatomic, weak) IBOutlet UILabel *ok1;
  @property (nonatomic, weak) IBOutlet UILabel *ok2;
  @property (nonatomic, weak) IBOutlet UILabel *ok3;
  @property (nonatomic, weak) IBOutlet UILabel *ok4;
  @property (nonatomic, weak) IBOutlet UILabel *ok5;
  
  
  @end
  </code></pre>
  
  <p>and this is the <code>CustomAlert.m</code>.</p>
  
  <pre><code>#import "CustomAlert.h"
  
  @implementation CustomAlert
  
  @synthesize ok = _ok;
  @synthesize ok1 = _ok1;
  @synthesize ok2 = _ok2;
  @synthesize ok3 = _ok3;
  @synthesize ok4 = _ok4;
  @synthesize ok5 = _ok5;;
  
  @end
  </code></pre>
  
  <p>I also create the xib with just a view and i connect the label with all the "ok".</p>
  
  <p>Now, i want to add this View to an AlertView with just an Ok button. How can i do it? I want to use it with ios 7 and 6.</p>
  
  <p>Thanks!!</p>