What does this code do? I don't know why I'm using ?and :p
label.frame = (inPseudoEditMode) ? kLabelIndentedRect : kLabelRect;
?:
is the same function as the trinomial operator in C.
Expressing it in the form of an if statement
if(inPseudoEditMode) {
label.frame = kLabelIndentedRect;
} } else {
label.frame = kLabelRect;
}
It's like that.
© 2024 OneMinuteCode. All rights reserved.