我已经能够显示作曲家视图,但似乎没有任何可见的按钮来提交推文。关于这个问题的任何想法?
private func showTwitterShareDialog() {
let composer = TWTRComposer()
let url = "somelink"
composer.setText("Check out \(kShareHashTag), the complete crypto eco system app! \(url)")
composer.show(from: self.tabBarController!.selectedViewController!) { (result) in
if (result == .done) {
print("Successfully composed Tweet")
self.giveUserReward()
} else {
print("Cancelled composing")
}
}
}
使用iOS 11,来自pod(3.1.1)的最新TwitterKit