0

我有一个堆栈视图,我点击照片选择项目并显示警报表,当警报表被解除并且我的图像视图的图像确实更改为 imageView 的色调颜色时。代码:

let alertController = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
    let cameraAction = UIAlertAction(title: "newsfeed_camera.picker".localized, style: .default, handler: {
        action in
        self.present(self.imageManager.cameraPicker, animated: true, completion: nil)
    })
    let photoAction = UIAlertAction(title: "newsfeed_photo.picker".localized, style: .default, handler: {
        action in
        self.present(self.imageManager.photoPicker, animated: true, completion: nil)
    })
    let cancelAction = UIAlertAction(title: "newsfeed_button.cancel".localized, style: .cancel, handler: {
        action in
        self.postTV.becomeFirstResponder()
    })

    alertController.addAction(cameraAction)
    alertController.addAction(photoAction)
    alertController.addAction(cancelAction)
    present(alertController, animated: true, completion: nil)

我用这样的图像显示,

第一个状态

第二状态

最终状态

4

0 回答 0