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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.
回答2:
RyanR is correct, there's no built in support in CoreText for Copy & Paste, but you can make your own copy & paste.
Take a look at this other topic post.
Core Text - select text in iPhone?