iOS:“warning:comparison between pointer and integer”


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


發佈了28 篇原創文章 · 獲贊 50 · 訪問量 11萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章