//
//  UITextView+Utility.m
//  Malvern Wedding Cars
//
//  Created by Nguyen Hieu on 1/24/13.
//  Copyright (c) 2013 Nguyen Hieu Gzone. All rights reserved.
//

#import "UITextView+Utility.h"

@implementation UITextView (Utility)

-(void)SettextTextView:(NSString *)str
{
    do{
        if ([self respondsToSelector: NSSelectorFromString(@"setContentToHTMLString:")])
            [self  performSelector: NSSelectorFromString(@"setContentToHTMLString:") withObject: str];
        else
            self.text = str;
    }
    while (0);
}
-(int)GetHeightTextView:(NSString *)htmlString{
    
    do{
        if ([self respondsToSelector: NSSelectorFromString(@"setContentToHTMLString:")])
            [self  performSelector: NSSelectorFromString(@"setContentToHTMLString:") withObject: htmlString];
        else
            self.text = htmlString;
    }
    while (0);
    
    NSLog(@"%f",self.contentSize.height);
    return self.contentSize.height;
    
}
-(void)setlineHeight:(float)lineHeight
{
    
}
@end
