Saturday, 24 August 2013

Simple if statement?

Simple if statement?

I've got a simple if statement that involves 4 UIImageViews I want to
detect when all 4 are nil to trigger something. It works just fine as it
is but I am getting a warning that says "expression result unused".
Let me know what ya think!
if (shapeImage1, shapeImage2, shapeImage3, shapeImage4 == nil){
NSLog(@"Hello, friend.");
}

No comments:

Post a Comment