07-21-2023, 10:29 PM
Maybe you can use this to confirm the "imageName" is not a "nil";Then you will leave away this warning.
if (imageName) {
self.imageView.image = [UIImage imageNamed:imageName];
}
if (imageName) {
self.imageView.image = [UIImage imageNamed:imageName];
}