简体   繁体   English

NavigationController透明和Swift上的背景图片

[英]NavigationController Transparent And Background Image On Swift

I learning IOS Programming, When i create navigation controller, i have 2 kinds navigation, navigationbar with image background and transparent background: 我正在学习IOS编程,当我创建导航控制器时,我有2种导航方式,即带有图像背景和透明背景的导航栏:

first controller with transparent navigationBar background, and second controller use navigation with image background, but when i back from secondcontroller to firstcontroller, there is flash in navigationbar. 第一个控制器具有透明的navigationBar背景,第二个控制器使用具有图像背景的导航,但是当我从secondcontroller切换回firstcontroller时,navigationbar中有闪光灯。 how to fix it ? 如何解决呢?

see that navbar, there is flash white whan back 看到那个导航栏,有闪光的白色wh回

我认为您必须在两个导航栏控制器中都添加图像。但是当您从第二个弹出到第一个时,只需隐藏第一个导航栏的图像...可能对您有所帮助...!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当模态在NavigationController中时背景不透明 - Background not transparent when modal is in NavigationController 图像背景中的UICollection视图为透明,而在Swift中不使其中的单元格透明 - UICollection view in image background as transparent without making the cells in it transparent in Swift 如何将具有透明背景的图像保存到照片库 Swift? - How to save an image with transparent background to photo library, Swift? 在Swift中使用透明背景加载MPMoviePlayerViewController吗? - Loading MPMoviePlayerViewController with transparent background in Swift? 具有透明图像背景的 UIButton 不透明 - UIButton with transparent image background not drawing transparent 图像选择器/UIImagePickerController 显示空白屏幕/NavigationController swift 5 - image picker/UIImagePickerController show blank screen/NavigationController swift 5 具有透明背景的 Swift 导航控制器视图 - Swift Navigation Controller View with transparent background 自定义UITableviewCell透明背景错误Swift 4 - Custom UITableviewCell transparent background error Swift 4 Swift 5 Xcode 10.3 如何设置背景透明 - Swift 5 Xcode 10.3 How to set background transparent 用透明背景Swift创建模态视图 - create modal view with transparent background Swift
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM