iPhone NSString drawAtPoint linebreakmodeWordWrap
由于我的 tableView 滚动速度非常慢,所以我现在尝试使用直接绘制方法,类似于 Tweetie App 示例或 Apples TableViewSuite 代码。
所以现在我正在努力用不止一行来绘制 NSString 。 我正在使用 [NSString drawAtPoint: forWidth: withFont: linebreakMode:]
方法,它“打破”该行,但它不显示第二行,它只是剪切其余的行串掉。
这是正常行为吗?多行的解决方案是什么?
Since I had a very slow scrolling tableView I'm now trying to catch up with the direct draw method, similiar to the Tweetie App sample or Apples TableViewSuite code.
So right now I'm struggling to draw NSString with more than one line.
I'm using the [NSString drawAtPoint: forWidth: withFont: linebreakMode:]
method, and it "breaks" the line, but it doesn't show the second line, it just cuts the rest of the string off.
Is this a normal behavior and what can be the solution to multiple lines?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用:
Try using: