我正在尝试制作一个弹出窗口,该弹出窗口将通过按下按钮显示。试图按照我在谷歌中找到的说明进行操作,但我的弹出View以全屏显示且其背景为黑色。这是我的代码:classViewController:UIViewController,UIPopoverPresentationControllerDelegate{@IBActionfuncsomeButtonPressed(sender:UIButton){letstoryboard:UIStoryboard=UIStoryboard(name:"Main",bundle:nil)letpopupVC=storyboard.instantia