删除文本的最佳方法
到目前为止,对于 iPhone 上删除文本的最佳解决方案是什么?
我听说过多种解决方案:
- 以 Three20
- Image 作为子视图
UIWebView
还有一些带有NSAttributedString
的东西,但我没有找到有效的示例。
What is the best solution so far for a strike out text on the iPhone?
I heard of multiple solutions:
- Something with three20
- Image as a subview
UIWebView
And something with aNSAttributedString
, but I don't find a working example for that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在iOS 6中我们可以使用“NSMutableAttributedString”来使用更多不同的样式。
In iOS 6 we can use "NSMutableAttributedString" for use more different styles.
您可以尝试我的 UILabel 子类解决方案,它支持:
具有各种标签边界的多行文本(文本可以位于标签框架的中间,或精确的大小)
https://github.com/GuntisTreulands/UnderLineLabel
You can try my solution of UILabel subclass, which supports:
multiline text with various label bounds (text can be in the middle of label frame, or accurate size)
https://github.com/GuntisTreulands/UnderLineLabel