XCode 6.3 Warning : Comparison of address of 'myObject' not equal to null pointer is always true

后端 未结 3 953
情书的邮戳
情书的邮戳 2021-01-17 19:58

After updating to XCode 6.3, compiler started giving this warning.

Comparison of address of \'myObject\' not equal to null pointer is always true.

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-17 20:22

    For the first instruction, a changed to :

     if (!CGRectIsNull(anotherRect)) {
    
     }
    

提交回复
热议问题