How to keep 2 different fonts within the same UITextField or UITextView?

后端 未结 5 2063
我在风中等你
我在风中等你 2020-12-04 02:54

I want to set 2 different fonts within the same UITextField and UITextView . How to do it?

5条回答
  •  借酒劲吻你
    2020-12-04 03:11

    I don't think it is possible to handle 2 different fonts within the same UITextField or UITextView. If you want to have different font style you can either set different font style within a UIWebView or use the coreText API.

    Here are some links that might help:

    1. iPhone Development - Setting UIWebView font
    2. the official doc on core text: https://developer.apple.com/library/mac/#documentation/StringsTextFonts/Conceptual/CoreText_Programming/Introduction/Introduction.html

提交回复
热议问题