I remember in Java you could just go
bool yesNo = YES; !yesNo;
and it will be NO automatically. I tried this several times in Objective-C, but it does not seem to work. Is there any specific language for this in Objective-C?
It works more or less the same way - you just need to remember that the result of the negation expression returns to the variable, for example:
yesNo = !yesNo;
Source: https://habr.com/ru/post/1344856/More articles:How to access columns in a table with different cell widths from MS Word - c #Windows: ReportEvent Function - windowsHow can I make this jQuery faster than what I have? - performanceFunction called during back button clicks on Android - androidIf you call base.methodName or this.methodName - syntaxkaminari undefined method `page '- ruby-on-rails-3Android - managing virtual and physical keyboard events - androidHow to implement a code button to format text in a text field? - javascriptAssign a value to a specific address - memory-addressC ++ lint: detect invalid pass by value - c ++All Articles