iOS 7 : 'isa' is deprecated

后端 未结 1 1580
独厮守ぢ
独厮守ぢ 2021-02-09 04:09

I get warning when I run my app in iOS7 \"\'isa\' is deprecated\", I don\'t have any idea how to fix this warning message. Please any one help on this.

array-&g         


        
相关标签:
1条回答
  • 2021-02-09 04:41

    Include <objc/runtime.h>.

    Replace everything like array->isa = _JKArrayClass; with object_setClass(array, _JKArrayClass)

    And everything like class = array.isa with class = object_getClass(array)

    0 讨论(0)
提交回复
热议问题