1
でCoreTextをスクロールし、私が持っている問題の一つは、コンテンツがスクロール可能でないことであり、それをスクロール可能にする方法IDKの...ラベルで、このコードは動作します:は私がCoreTextを試しています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