2011-10-10 42 views

回答

1
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]; 

这是假设你的数组包含字符串。 UIAlertView的类似方法。

+0

谢谢,它的工作!顺便说一下,我把它改成了'[mstr appendString:[NSString stringWithFormat:@“%@ \ n”,s]];' – wagashi

+0

是的,不确定你是否在字符串中有换行符,不用担心;) – Skela

相关问题