I am porting an iOS application from Xcode4 to Xcode7 (beta 4). Dependence on AFNetworking automatically resolved using Pods. AFNetworking 2.0 is not backward compatible with AFNetworking 1.0, so I modified part of the source. There is
- File structure
- Magazine and
- related source code
Problem below
/Api/ApiClient.m::: error: unexpected interface name 'NSData': expected expression NSData* callerData = [@"http://nikyotis.xyz" dataUsingEncoding:NSUTF8StringEncoding]; ^ /Api/ApiClient.m::: error: use of undeclared identifier 'callerData' NSData* callerData = [@"http://nikyotis.xyz" dataUsingEncoding:NSUTF8StringEncoding];
in line 280 of the example above

Substituting NSData with NSString results in the error below

Original AFNetwork-1.0 code below

I am trying to switch to AFNetwork-2.0, replacing the subroutine with either // 1

or 2

without success
source share