核心文本和复制在iOS上粘贴 [英] Core Text and copy 'n paste on iOS

查看:150
本文介绍了核心文本和复制在iOS上粘贴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS中是否可以使用CoreText呈现复杂的文本并具有复制粘贴功能?我发现了很多关于CoreText渲染的例子,但没有关于复制粘贴的例子。

Is it possible in iOS to render complex text with CoreText and have copy 'n paste feature? I’ve found a lot of example about CoreText rendering but nothing that concerns copy 'n paste.

推荐答案

实施复制&使用 UIMenuController 粘贴自己。在CoreText中没有内置支持用于复制&粘贴,因为CoreText是一个非常低级库。

Yes, but you have to implement Copy & Paste yourself through use of UIMenuController. There is no 'built in' support in CoreText for Copy & Paste, as CoreText is a very low level library.

这篇关于核心文本和复制在iOS上粘贴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆