Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Swift 如何创建导航栏背景以在UITableView中查看UIImage背景?_Swift_Uitableview_Uinavigationcontroller_Uiimageview - Fatal编程技术网

Swift 如何创建导航栏背景以在UITableView中查看UIImage背景?

Swift 如何创建导航栏背景以在UITableView中查看UIImage背景?,swift,uitableview,uinavigationcontroller,uiimageview,Swift,Uitableview,Uinavigationcontroller,Uiimageview,我想向你展示我面临的问题的截图结果 但我可以看到背景是这样的 我尝试了这段代码,以使iOS 13及以上版本的背景更清晰 let app = UINavigationBarAppearance() let navigationBar = self.navigationController?.navigationBar app.backgroundColor = .clear app.configureWithOpaq

我想向你展示我面临的问题的截图结果

但我可以看到背景是这样的

我尝试了这段代码,以使iOS 13及以上版本的背景更清晰

    let app = UINavigationBarAppearance()
          
    let navigationBar = self.navigationController?.navigationBar
           
    app.backgroundColor = .clear
    app.configureWithOpaqueBackground()
         
    app.configureWithOpaqueBackground()
    app.titleTextAttributes = [.foregroundColor: UIColor.white]
    app.largeTitleTextAttributes = [.foregroundColor: UIColor.white]
    app.backgroundColor = .clear
   
    self.navigationController?.navigationBar.scrollEdgeAppearance = app
               
             
    navigationBar!.standardAppearance = app
    navigationBar!.scrollEdgeAppearance = app
所以它也不起作用。如何使导航栏在内置UITableView的UIImage中可见

在iOS 14中添加模糊背景怎么样?我找不到它

让我知道谢谢