Skip to content
This repository has been archived by the owner on Mar 9, 2018. It is now read-only.

Added "Copy" menu to copy contents of chat bubbles to UIPasteboard #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eliburke
Copy link

@eliburke eliburke commented May 9, 2013

I appropriated some code from https://github.com/ardalahmet/CopyableCell to add Copy functionality.

As of iOS5 there is a simple technique to do this using UITableView delegates but the resulting copy menu is centered across the entire screen. Using this older method I have the copy menu centered over the text bubble.

If the NSBubbleData member contains a UILabel it is copied as text. If it contains a UIImage or UIImageView it is copied as an image.

@mathisonian
Copy link

I've started to integrate this into my fork of the project since this one doesn't seem to be maintained.

https://github.com/huffpostlabs/HPLChatViewController/commit/2f4d9691b6c5a834b997ff4dbc51cadaa950dc50

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants