ios - 你如何在一个 UITextView (Xcode) 中使用两种字体?

标签 ios objective-c

我想在一个 UITextView 中制作两种字体样式,我该怎么做?

最佳答案

来自class reference :

This class does not support multiple styles for text. The font, color, and text alignment attributes you specify always apply to the entire contents of the text view. To display more complex styling in your application, you need to use a UIWebView object and render your content using HTML.

关于ios - 你如何在一个 UITextView (Xcode) 中使用两种字体?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7709650/

相关文章:

ios - 如何实现PSCollectionView?

ios - CFBundleIdentifier 是否可本地化?

php - 允许用户将玩 iOS 应用程序的邀请张贴到 friend 的 Facebook 墙上?

objective-c - 未知的Objective-C错误“架构x86_64的 undefined symbol ”,一切似乎正常

ios - 如何在 UIView 上绘制一个 NSStrings 数组,它们之间没有任何前导空间并占据整个矩形?

ios - Swift - 设置变量属性并发或多线程安全吗?

jQuery .submit() 在 iPad 上被忽略

iOS:获取有关按钮点击的错误

ios - -[PreviewViewController applicationWillSuspend] : message sent to deallocated instance 0x1806d9e0

ios - 错误:无法在录制的音频文件上设置客户端格式(-66563)-EZRecorder/EZAudio