Objective C UIActionSheet is it possible to fill Title with a NSArray?
I know about addButtonWithTitle function, but I dont want to create new buttons, only to fill the Title area in an UIActionSheet开发者_开发技巧.
If it is possible, is it possible with UIAlertView?
NSMutableString *mstr = [[NSMutableString alloc]init];
for (NSString *s in array)
[mstr appendString:s];
UIActionSheet*actionSheet = [[UIActionSheet alloc] initWithTitle:mstr ......
[actionSheet showInView:view];
[actionSheet release];
[mstr release];
This is assuming yer array contains strings. Similar approach for UIAlertView.
精彩评论