Fill an actionsheet with an array
<p>I have an actionsheet popup in my iphone application.  I would like to fill it with strings from an array instead of predetermined values.  </p>

<p>I can't find anything online to do this!  Perhaps actionsheet isn't the right thing to use?</p>

<p>Right now this is what I'm using to build it:</p>

<pre><code>roomspopup = [ [ UIActionSheet alloc ]  
         initWithTitle: alertname  
         delegate: self 
         cancelButtonTitle: @"Cancel" 
         destructiveButtonTitle: nil 
         otherButtonTitles: @"Kitchen", "Dining Room", nil ];
</code></pre>

<p>But, instead of "Kitchen" and "Dining Room" I'd like it to fill in from an array.  The size of the array (i.e. the number of rooms) is not a fixed number.</p>
