0
addButtonWithTitle 함수에 대해 알고 있지만 UIActionSheet의 제목 영역을 채우기 위해 새 단추를 만들고 싶지 않습니다.목표 C UIActionSheet는 Title에 NSArray를 채울 수 있습니까?
가능한 경우 UIAlertView로 가능합니까?
addButtonWithTitle 함수에 대해 알고 있지만 UIActionSheet의 제목 영역을 채우기 위해 새 단추를 만들고 싶지 않습니다.목표 C UIActionSheet는 Title에 NSArray를 채울 수 있습니까?
가능한 경우 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];
yer 배열에 문자열이 들어 있다고 가정합니다. UIAlertView에 대한 유사한 접근법.
감사합니다. 그건 그렇고, 내가 그것을'[mstr appendString : [NSString stringWithFormat : @ "% @ \ n", s]]로 변경했다. – wagashi
그래, 문자열에 개행 문자가 있는지 없는지, 확실하지 않았다. ;) – Skela