Justified Alignment in UITextView - iPhone

后端 未结 6 1467
名媛妹妹
名媛妹妹 2020-12-03 02:54

In my application, i have a UITextView with many lines, but I need the data with proper appearance.

Is it possible to have Justified Alignment in

6条回答
  •  -上瘾入骨i
    2020-12-03 03:48

    I have come to a solution that works. First of all, you will need to change your UITextView and use a UIWebView instead.

    Details.h

    @interface Details : UIViewController {
        IBOutlet UIWebView *descripcion;
    }
    
    @property (nonatomic, retain) UIWebView *descripcion;
    

    Then, load your UIWebView as follows:

    Details.m

    [descripcion loadHTMLString:[NSString stringWithFormat:@"
    %@
    ",YOUR_TEXT] baseURL:nil];

提交回复
热议问题