| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- //
- // FullyShowViewController.m
- // phoneTest
- //
- // Created by Ray on 05/09/2017.
- //
- //
- #import "FullyShowViewController.h"
- @interface FullyShowViewController ()
- @end
- @implementation FullyShowViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
-
-
- NSAttributedString *attributedString = [[NSAttributedString alloc]
- initWithData: [self.htmlText dataUsingEncoding:NSUnicodeStringEncoding]
- options: @{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType }
- documentAttributes: nil
- error: nil
- ];
-
- // self.textView.text = self.text;
- self.textView.attributedText = attributedString;
- // Do any additional setup after loading the view.
- }
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
- }
- /*
- #pragma mark - Navigation
- // In a storyboard-based application, you will often want to do a little preparation before navigation
- - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
- // Get the new view controller using [segue destinationViewController].
- // Pass the selected object to the new view controller.
- }
- */
- @end
|