0
DTAttributedTextView를 사용하여 nsstring 형식의 HTML 데이터를 표시합니다.이 뷰의 텍스트를 중앙에 정렬하는 방법이 있습니다.DTAttributedTextView에서 텍스트를 중앙에 정렬하는 방법
DTAttributedTextView를 사용하여 nsstring 형식의 HTML 데이터를 표시합니다.이 뷰의 텍스트를 중앙에 정렬하는 방법이 있습니다.DTAttributedTextView에서 텍스트를 중앙에 정렬하는 방법
나는 IT-하는 코드를 추가하려면이 & 같이 할 수 있다고 생각
NSMutableString *html = [[NSMutableString alloc] initWithCapacity:1];
[html appendString:@"<html><head>"];
[html appendString:@"<style type=\"text/css\">"];
[html appendString:@"body {"];
[html appendString:@"<center>"];
[html appendString:@"background-color: transparent;"];
[html appendString:@"color: white;"];
[html appendString:@"}"];
[html appendString:@"<center>"];
[html appendString:@"</style>"];
[html appendString:@"</head>"];
[html appendString:@"</body></html>"];