我要截取这个豆荚的长新闻的价值:
https://github.com/liyong03/YLLongTapShare

我是在Swift开发的,这个吊舱只是目标-C。
我无法捕捉到处理长新闻选择结束的功能(在这里,在屏幕截图上),一旦用户发布了长新闻(他的选择是Twitter),我想检索"Twitter“。
提前谢谢!
发布于 2018-06-26 10:17:08
简单的例子:
import UIKit
import YLLongTapShare
class TestViewController: UIViewController, YLLongTapShareDelegate {
@IBOutlet weak var tapShareView: YLLongTapShareView!
override func viewDidLoad() {
super.viewDidLoad()
self.tapShareView.delegate = self;
self.tapShareView.add(YLShareItem(icon: UIImage(named: "test1"), andTitle: "test1"))
self.tapShareView.add(YLShareItem(icon: UIImage(named: "test2"), andTitle: "test2"))
self.tapShareView.add(YLShareItem(icon: UIImage(named: "test3"), andTitle: "test3"))
}
func longTapShare(_ view: UIView!, didSelectShareTo item: YLShareItem!, with index: UInt) {
print("longTapShare \(item.title)")
}
func colorOfShareView() -> UIColor! {
return UIColor.red
}
}https://stackoverflow.com/questions/51039476
复制相似问题