0
内执行任务,我有以下代码:隐藏的UIImage而UIButton的DidTouch事件
@IBAction func exportDidTouch(_ sender: Any) {
self.logoImg.alpha = 0.0
let result = exporter.composeString(context: context)
exporter.export(composedString: result)
let activity = exporter.activityVC()
logoImg.alpha = 1.0
self.present(activity, animated: true, completion: nil)
}
我想隐藏的UIImage
当我构建一个文件导出。运行此操作无法按预期工作,仅在呈现活动控制器时的末尾将alpha设置为0.0
。
作为一名初学者,我不太明白为什么会发生这种情况,为什么按下按钮时图像并不完全隐藏?
我该如何解决这个问题?单击按钮时将其隐藏,并在呈现活动控制器时将其显示出来。