Here you use a UIWebView in place of UITextView and load your text as NSString.
className.h
@interface className : UIViewController {
IBOutlet UIWebView *webviewName;
}
@property (nonatomic, retain) UIWebView *webviewName;
Text_set is NSString;
className.m
[webviewName loadHTMLString:[NSString stringWithFormat:@"<div align='justify'>%@<div>",TEXT_set] baseURL:nil];
HOPE IT WILL HELP YOU.
HAPPY CODING I CODING.
No comments:
Post a Comment