Copy/Paste functionality in UITableViewController
<p>I have a UITableViewController. I want to pop the copy/paste menu up when the user touches a cell. I want to do as in the Contacts app. How to implement this functionality. Can someone help me.</p>

<p>I tried this code,</p>

<pre><code>UIMenuController *theMenu = [UIMenuController sharedMenuController];
[theMenu setTargetRect:CGRectMake(10, 200, 100, 40) inView:[self tableView]];
[theMenu setMenuVisible:YES animated:YES];
</code></pre>

<p>But it doesn't work. My question is,</p>

<ol>
<li>What CGRect I have to pass as the setTargetRect parameter?</li>
<li>Do I need to call SetNeedsDisplayInRect in my TableViewController?</li>
<li>What else to do to make this work?</li>
</ol>
