Copy functionality in iOS by using UIPasteboard

Well you don’t say exactly how you have your table view cell set up, but if it’s just text inside your table view it could be as easy as: // provided you actually have your table view cell NSString *copyStringverse = yourSelectedOrClickedTableViewCell.textLabel.text; UIPasteboard *pb = [UIPasteboard generalPasteboard]; [pb setString:copyStringverse];

How to copy text to clipboard/pasteboard with Swift

If all you want is plain text, you can just use the string property. It’s both readable and writable: // write to clipboard UIPasteboard.general.string = “Hello world” // read from clipboard let content = UIPasteboard.general.string (When reading from the clipboard, the UIPasteboard documentation also suggests you might want to first check hasStrings, “to avoid causing … Read more