iOS:“warning:comparison between pointer and integer”


  if (num == 0) { //提示 Comparison between pointer and integer ('id _Nullable' and 'int')
    转换下就好了
 if ([num intValue] == 0) {


你可能感兴趣的:(Objective-C)