【问题标题】:Stripe STPAddCardViewController navigation bar not showingStripe STPAddCardViewController 导航栏未显示
【发布时间】:2018-12-13 12:09:11
【问题描述】:

我在我的代码中使用了条带。我的viewController 中有一个navigationBar。

这是我viewController的图片:

但是当我导航到STPAddCardViewController 时,STPAddCardViewController 的导航栏没有显示。我正在使用此代码:

let addCardViewController = STPAddCardViewController()

addCardViewController.delegate = self

navigationController?.pushViewController(addCardViewController, animated: true) 

这是生成的图像:

出了什么问题?

【问题讨论】:

    标签: ios swift xcode uinavigationbar stripe-payments


    【解决方案1】:

    您是否可能在代码中的其他地方做某种(或类似)会导致隐藏导航栏的事情?

    self.navigationController?.navigationBar.isHidden = true

    仅凭您发布的 sn-p,我认为很难确切说明为什么会发生这种情况。我们可能需要查看更多 ViewController 的代码

    我建议查看您的代码是否没有执行上述操作。

    这是一个非常简单的示例 VC,它使用 AddCardViewController 推送到导航控制器上,希望可以提供帮助。这应该没有你描述的问题:

    https://gist.github.com/spastorelli-stripe/9ec230dad7a7da5a6f85147deb6a4b3b

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-01-18
      • 2021-08-27
      • 2017-09-28
      • 2015-10-23
      • 2022-10-23
      • 2019-01-11
      • 1970-01-01
      相关资源
      最近更新 更多