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

yer 배열에 문자열이 들어 있다고 가정합니다. UIAlertView에 대한 유사한 접근법.

+0

감사합니다. 그건 그렇고, 내가 그것을'[mstr appendString : [NSString stringWithFormat : @ "% @ \ n", s]]로 변경했다. – wagashi

+0

그래, 문자열에 개행 문자가 있는지 없는지, 확실하지 않았다. ;) – Skela