I got an Actionheet popup in my iphone application. I would like to fill it with strings from an array instead of predefined values.
I can not find anything online to do this! Perhaps the action plan is not suitable for use?
Now this is what I use to create it:
roomspopup = [ [ UIActionSheet alloc ]
initWithTitle: alertname
delegate: self
cancelButtonTitle: @"Cancel"
destructiveButtonTitle: nil
otherButtonTitles: @"Kitchen", "Dining Room", nil ];
But instead of "Kitchen" and "Canteen" I would like it to be filled from an array. The size of the array (i.e. the number of rooms) is not a fixed number.
source
share