Search code examples
ios7xcode5jsonkit

iOS 7 : 'isa' is deprecated


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->isa      = _JKArrayClass;

Solution

  • 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)