谁能告诉我为什么以下是可以的:
if (newEditingMode) {
dayView.dayViewIsInEditingMode = YES;
}
else{
dayView.dayViewIsInEditingMode = NO;
}
但以下给出了错误Expression is not assignable
:
newEditingMode ? dayView.dayViewIsInEditingMode = YES : dayView.dayViewIsInEditingMode = NO;