0

I am trying to use ObjectiveFlickr with the following sample API call but my code ends with an EXC_BAD_ACCESS. I made sure that my key and shared secret exist in flickr:

OFFlickrAPIContext *context = [[OFFlickrAPIContext alloc] initWithAPIKey:apiKey sharedSecret:sharedSecret];    
OFFlickrAPIRequest *request = [[OFFlickrAPIRequest alloc] initWithAPIContext:context];
[request setDelegate:self];
[request callAPIMethodWithGET:@"flickr.photos.getRecent" arguments:[NSDictionary dictionaryWithObjectsAndKeys:@"1", @"per_page", nil]];
Hahnemann
  • 4,378
  • 6
  • 40
  • 64

1 Answers1

0

I had the same error, look here: ObjectiveFlickr & Xcode 4.5.2

Declare the context and request variables as properties instead, and it'll get rid of the EXC_BAD_ACCESS

Community
  • 1
  • 1
SMSidat
  • 1,163
  • 1
  • 15
  • 34