We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cell.followButton.rx.action = CocoaAction { [weak self] _ in return Observable.create { [weak self] observer -> Disposable in let alertController = UIAlertController(title: "Hello world", message: "This alert was triggered by a button action", preferredStyle: .alert) var ok = UIAlertAction.Action("OK", style: .default) ok.rx.action = CocoaAction { [weak self] in guard let self = self else { return .empty() } return self.viewModel.unfollowing(item.outputs.user.id) .do(onCompleted: { observer.onCompleted() }) } alertController.addAction(ok) self?.present(alertController, animated: true, completion: nil) return Disposables.create() } }
self
会报出异常: didReceive(_:target:): Received networking error: underlying(Alamofire.AFError.explicitlyCancelled, nil)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
cell.followButton.rx.action = CocoaAction { [weak self] _ in
return Observable.create { [weak self] observer -> Disposable in
let alertController = UIAlertController(title: "Hello world", message: "This alert was triggered by a button action", preferredStyle: .alert)
var ok = UIAlertAction.Action("OK", style: .default)
ok.rx.action = CocoaAction { [weak self] in
guard let
self
= self else { return .empty() }return self.viewModel.unfollowing(item.outputs.user.id)
.do(onCompleted: {
observer.onCompleted()
})
}
alertController.addAction(ok)
self?.present(alertController, animated: true, completion: nil)
return Disposables.create()
}
}
会报出异常:
didReceive(_:target:): Received networking error: underlying(Alamofire.AFError.explicitlyCancelled, nil)
The text was updated successfully, but these errors were encountered: