我遇到TWTRComposer问题。我使用pods安装TwitterKit,遵循所有其他说明,即更新的info.Plist,AppDelegate等。我正在使用Swift。当我调用处理代码的func应用程序崩溃时,请在下面示例代码。在composer.show(来自:self.navigationController!)的行上,错误消息是线程1:EXC_BREAKPOINT(代码= 1,子代码= 0x1024ff1ac)我不知道这意味着什么。任何解释和帮助表示赞赏。
let composer = TWTRComposer()
composer.setText("just setting up my Twitter Kit")
composer.setImage(UIImage(named: "twitterkit"))
// Called from a UIViewController
composer.show(from: self.navigationController!) { (result) in
if (result == .done) {
print("Successfully composed Tweet")
} else {
print("Cancelled composing")
}
}