ios富文本自适应
>
http://blog.csdn.net/yuzhouheikewll/article/details/50551160
引用块内容
NSDictionary* dict = @{
NSFontAttributeName:[UIFont systemFontOfSize:30],
NSForegroundColorAttributeName:[UIColor blueColor]
};
UIEdgeInsets insets = UIEdgeInsetsMake(56, 35, 23, 25);
// UIView* v = [[UIView alloc]init];
UIImage* image = [UIImage imageNamed:@"qipao"];
UIImageView* imageView = [[UIImageView alloc]init ];
// CGRectMake(20 ,40 , self.view.frame.size.width-40, 200)];
// image.size = [szietofit]
image = [image resizableImageWithCapInsets:insets resizingMode:UIImageResizingModeStretch];
imageView.image = image;
// lable.backgroundColor = [UIColor colorWithPatternImage:image];
UILabel* lable = [[UILabel alloc]init];
NSString* string = @"宇宙黑客黑客宇宙你是谁你在哪里我找不到 =====你是中国门中国国旗宇宙黑客