2013-08-31 35 views
0

我在里面使用单个UITextView的xib来显示预先格式化的文本页面。在代码中格式化文本太复杂,因此我在Apple页面中进行格式化,然后在xib的UITextView对象中粘贴格式化的文本。我在页面加载这个厦门国际银行这样
UITextView xib在IOS 5.1中丢失格式化

subviewArray = [[NSBundle mainBundle] 
loadNibNamed:[language stringByAppendingString:_textXibName] 
     owner:self options:nil]; 
textView = [subviewArray objectAtIndex:0]; 
textView.delegate=self; 
textView.editable=NO; 
textView.frame = CGRectMake(_textOrigin.x , _textOrigin.y , textView.frame.size.width, textView.frame.size.height); 
[self.vignetteView addSubview:textView]; 

image xcode xib http://jonathan-thebook.com/x1_xcode.png
在IOS 6.1一切看起来很完美。
screen shot in iOS 6.1, looking OK http://jonathan-thebook.com/x1_right_6.1.png
但是在5.1及以下的所有格式中突然丢失了!
screen shot in iOS 5.1, formatting is lost http://jonathan-thebook.com/x1_wrong_5.1.png
从哪里开始挖掘?也许是因为我处于一种温和的恐慌状态,我不知道!任何建议非常感谢!

回答