1
글 머리 기호를 삽입하고 텍스트 상자에 양식을 작성하는 방법을 아는 사람이 있습니까? iOS 5, XCode 4.3의 웹보기 (아래 인쇄 화면) UITextView
를 들어iOS5의 TextBox에서 서식 및 글 머리 기호
글 머리 기호를 삽입하고 텍스트 상자에 양식을 작성하는 방법을 아는 사람이 있습니까? iOS 5, XCode 4.3의 웹보기 (아래 인쇄 화면) UITextView
를 들어iOS5의 TextBox에서 서식 및 글 머리 기호
수동으로 예를 들어, 점 및 줄 바꿈을 추가하십시오 UIWebView
를 들어
NSArray *items = [NSArray arrayWithObjects:@"Stack",@"Overflow",nil];
NSMutableString *formattedString = [[NSMutableString alloc] init ];
for (NSString *item in items) [formattedString appendFormat:@"\u2022 %@\n", item];
theTextViewName.text = formattedString;
가 정렬되지 않은 HTML
목록을 작성, 예를 들면 :
NSArray *items = [NSArray arrayWithObjects:@"Stack",@"Overflow",nil];
NSMutableString *theSource = [[NSMutableString alloc] init ];
[theSource appendFormat:@"<ul>"];
for (NSString *item in items) [theSource appendFormat:@"<li>%@</li>", item];
[theSource appendFormat:@"</ul>"];
[theWebView loadHTMLString:theSource baseURL:nil];
모두 결과에를 다음 목록 :
- 스택
- 오버플로