Assuming object is a kind of NSObject, the following if statements are equivalent, but which style should I use?
if (object) {
// ...
}
or
if (object != nil) {
// ...
}
Assuming object is a kind of NSObject, the following if statements are equivalent, but which style should I use?
if (object) {
// ...
}
or
if (object != nil) {
// ...
}