有没有其他人在Xcode版本/ SDK版本之间经历过CNContactVIEwController的导航区域已经改变的变化?在我们的应用程序中可能会有一些其他更改会影响此栏吗?
编辑:这是我们最新版本中的图像.我确实删除了一些个人信息,所以这是中间的方框,但你可以在左上方看到很难看到后退按钮.
编辑:这是我们在整个应用程序中设置颜色的方式.如果白色后退按钮也使用红色的条形色调而不是任何东西,那么白色后退按钮就不会出现问题
UINavigationbar.appearance().barTintcolor = UIcolor.red UINavigationbar.appearance().tintcolor = UIcolor.white UINavigationbar.appearance().TitleTextAttributes = [NSForegroundcolorAttributename: UIcolor.white]
我们使用的代码将其推送到具有红色条和白色按钮的现有导航控制器:
let ucvc = CNContactVIEwController(forUnkNownContact: contact)ucvc.delegate = selfucvc.allowsEditing = trueucvc.allowsActions = trueucvc.alternatename = name()ucvc.contactStore = CNContactStore()self.navigationController?.pushVIEwController(ucvc,animated: true)解决方法 我遇到了完全相同的问题.它看起来像iOS 10的BUG.无论如何,我通过将导航栏的半透明度设置为false来找到解决方法.然后将应用程序主窗口的背景颜色设置为您希望导航栏的颜色.
一些代码片段:
UINavigationbar.appearance().isTranslucent = falseUIApplication.shared.delegate?.window??.backgroundcolor = UIcolor.red@H_404_45@ 总结
以上是内存溢出为你收集整理的ios – CNContactViewController导航栏版本之间有所不同全部内容,希望文章能够帮你解决ios – CNContactViewController导航栏版本之间有所不同所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)