What does the question mark and the colon (?: ternary operator) mean in objective-c?

What does this line of code mean?

label.frame = (inPseudoEditMode) ? kLabelIndentedRect : kLabelRect;

The ? and : confuse me.

13 Answers
13

Leave a Comment