UIActivityViewController with HTML

后端 未结 4 1065
一生所求
一生所求 2021-02-01 22:16

When I pass a string containing HTML content as an array element to the UIActivityViewController initWithActivityItems method it doesn\'t present it as HTML in the

4条回答
  •  名媛妹妹
    2021-02-01 22:56

    What activities are you looking to support? Activity types are dependent on the service, and they're pretty clearly defined. There's no way for services to know that a string is a plain text or marked-up text, for example--you might want to paste HTML code on purpose.

    You can always do things the old-fashioned way and copy plain text and HTML to the pasteboard, or call the mail composer directly, or whatever you're trying to accomplish.

提交回复
热议问题