error 'autorelease' is unavailable: not available in automatic reference counting mode

前端 未结 2 1918
轻奢々
轻奢々 2020-12-10 02:27

I trying to make a HTTP request and parse JSON using Stig\'s JSON Library. I\'m getting this error \'autorelease\' is unavailable: not available in automatic reference coun

2条回答
  •  臣服心动
    2020-12-10 03:11

    Change

    SBJSON *json4 = [[SBJSON new] autorelease];

    to

    SBJSON *json4 = [SBJSON new];

    This will allow you to leave automatic reference counting intact.

提交回复
热议问题