Options
NSAssert accept the condition and the message. If the condition is not fulfilled / true, then the statement fails, and NSAssert throws an exception with the message provided. For example, NSAssert((a == b), @"Error message"); will throw an exception if a not equal to b . NSAssert1 is an option that takes an additional argument and inserts it into the provided format string: NSAssert1((a == b), @"Error message: %@", someErrorString);
NSLog just write something on the console.
The documentation for all of these macros is on the Apple Developer site .
nil
source share