1
我与CoreText尝试滚动CoreText,我有一个问题是,内容并不滚动和IDK的如何使它滚动......用标签此代码的工作:中的UIScrollView
//Calculate the expected size based on the font and linebreak mode of your label
CGSize maximumLabelSize = CGSizeMake(300,9999);
CGSize expectedLabelSize = [labelText sizeWithFont:label.font
constrainedToSize:maximumLabelSize
lineBreakMode:UILineBreakModeTailTruncation];
//adjust the label the the new height.
CGRect newFrame = label.frame;
newFrame.size.height = expectedLabelSize.height;
label.frame = newFrame;
我测试项目:http://dl.dropbox.com/u/47384598/AA_CoreText.zip
但我该怎么处理CoreText?任何帮助高度赞赏!
你可以创建一个新的子视图来绘制它,并添加子视图到CTView 然后你可以滚动它 – adali 2012-04-19 01:13:03