Objective-C: if (object) Vs. if (object != nil)

前端 未结 2 2029
天涯浪人
天涯浪人 2021-01-04 19:07

Assuming object is a kind of NSObject, the following if statements are equivalent, but which style should I use?

if (object) {
             


        
2条回答
提交回复
热议问题