给UITableView增加拷贝
2015-12-10 21:15
411 查看
func tableView(tableView: UITableView, performAction action: Selector, forRowAtIndexPath indexPath: NSIndexPath, withSender sender: AnyObject?) { if action == Selector("copy:") { if indexPath.row < Data.sharedManager.goodArticle.contentlist.count { UIPasteboard.generalPasteboard().string = Data.sharedManager.goodArticle.contentlist[indexPath.row].url } } } func tableView(tableView: UITableView, canPerformAction action: Selector, forRowAtIndexPath indexPath: NSIndexPath, withSender sender: AnyObject?) -> Bool { return action == Selector("copy:") } func tableView(tableView: UITableView, shouldShowMenuForRowAtIndexPath indexPath: NSIndexPath) -> Bool { return true }
相关文章推荐
- 猿猴UI之沙盒机制
- 185 Which two client requests are captured during database replay Capture? (Choose two) A. Flashback
- UI-第二讲:基础控件
- UITableView和UICollectionView的留白问题和被TabBar遮挡的问题
- 181 You performed the RMAN database backup with the KEEP option. Which two statements are true about
- Arduino - 防止接通电源时IO口电平不稳的问题
- UICollectionView的使用
- UVa 1594 - Ducci Sequence【模拟】
- UI第二十一天:集合视图
- CSU 1555-Inversion Sequence(逆序数还原,线段树实现)
- zzulioj--1801--xue姐的小动物(水题)
- requirejs官网
- zzulioj--1801--xue姐的小动物(水题)
- 《iOS Human Interface Guidelines》——Case Study:From Desktop to iOS
- UIScrollView的重用笔记
- squee_spoon and his Cube VI(贪心,找不含一组字符串的最大长度+kmp)
- iOS9中UIAlertView和UIActionSheet的用法
- Android下uid与多用户释疑(二)
- iOS UISlider的使用
- UIBezierPath Class Reference翻译