你的
doneButtonDidPress
方法在中实现
TabBarController
并且您希望选中
Images
在里面
CameraVC
所以做一件事添加
NotificationCenter
在里面
CameraVC公司
并将该通知发布到
图像
array
一旦你完成了
Image
选择并选择加载
images
从那以后
大堆
在里面
CameraVC公司
.
CameraVC公司
NotificationCenter.default.addObserver(self, selector: #selector(updateSelectedImages(_:)), name: NSNotification.Name(rawValue: "updateSelectedImages"), object: nil)
@objc func updateSelectedImages(_ notification: Notification) {
let imagesInfo = notification.object as? NSDictionary
self.arrImages = imagesInfo?.value(forKey: "selectedIamges") as! [UIImage]
self.imageView.image = self.arrImages[0]
self.imageView1.image = self.arrImages[1]
}
UITABBARC控制器
let dict = NSMutableDictionary()
dict.setValue(images, forKey: "selectedIamges")
NotificationCenter.default.post(name: NSNotification.Name("updateSelectedImages"), object: dict)