Ga direct naar inhoud.

Hans Pinckaers

How to create a UITableViewCell with “copy” ability

It’s possible to copy the content of a UITableViewCell in the Contacts app of Apple. When you tap and hold you will see a small menu with “Copy”. I needed this functionality myself, so I subclassed the class. You are free to use this in any application, but it would be awesome if you mention me in the credits of your App.

It’s easy to use

  1. Copy the files in your project.
  2. Use this code to create a cell:
    cell = [[[HPCopyTableViewCell alloc] 
    			initWithStyle:UITableViewCellStyleValue2 
    		      reuseIdentifier:CellIdentifier] autorelease];

    Download

    HPCopyTableViewCell.zip

    Leave a Reply