在ObjectiveFlickr中调用callAPIMethodWithGET时出错

时间:2013-01-25 08:22:48

标签: objectiveflickr

我正在尝试将ObjectiveFlickr与以下示例API调用一起使用,但我的代码以EXC_BAD_ACCESS结尾。我确保我的密钥和共享秘密存在于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]];

1 个答案:

答案 0 :(得分:0)

我遇到了同样的错误,请看这里:ObjectiveFlickr & Xcode 4.5.2

将上下文和请求变量声明为属性,它将摆脱EXC_BAD_ACCESS