NSString *copyStringverse = [[NSString alloc] initWithFormat:@"%@",[textview.text]];
UIPasteboard *pb = [UIPasteboard generalPasteboard];
[pb setString:copyStringverse];
I am using above code for copying contents in textview
,but I want to copy contents in a cell of the table. How to do this.
Thanks in advance.
For Swift2.2
By using this you can directly set the value to
UIPasteboard
.For Swift 2.1+:
For Swift 3.x
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: