Uitableview 当我从自定义单元格触发UIAlertController时,它会出现,但它不是';它不是半透明的。我怎样才能解决这个问题?

Uitableview 当我从自定义单元格触发UIAlertController时,它会出现,但它不是';它不是半透明的。我怎样才能解决这个问题?,uitableview,uialertcontroller,Uitableview,Uialertcontroller,我从自定义单元格委托调用此函数。它呈现正确,但不是半透明的。所以我的警报后面的larey可能不是单元格所在的表视图。救命啊 internal func menuBtnTapped(_ sender: myListTableViewCell) { let controller = UIAlertController(title: "File Transfer", message: nil, preferredStyle: .actionSheet) controller.add

我从自定义单元格委托调用此函数。它呈现正确,但不是半透明的。所以我的警报后面的larey可能不是单元格所在的表视图。救命啊

internal func menuBtnTapped(_ sender: myListTableViewCell) {

    let controller = UIAlertController(title: "File Transfer", message: nil, preferredStyle: .actionSheet)

    controller.addAction(UIAlertAction(title: "Move File", style: .default, handler: { _ in self.moveFileProtocol(sender)
    }))
    controller.addAction(UIAlertAction(title: "Copy File", style: .default, handler: { _ in self.copyFileProtocol(sender)
    }))
    controller.addAction(UIAlertAction(title: "Export File", style: .default, handler: { _ in self.exportFileProtocol(sender)
    }))
    controller.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: nil))

    present(controller, animated: true, completion: nil)
}

它实际上是半透明的,只是在默认情况下应用的模糊量不明显