iOS,AFURLConnectionOperation

时间:2013-10-27 19:02:55

标签: ios afnetworking nsurl fileoutputstream nsrunloop

我使用此代码,但有时我收到了Exc错误访问

这是代码:

- (void)operationDidStart {
    [self.lock lock];
    if (! [self isCancelled]) {
        self.connection = [[NSURLConnection alloc] initWithRequest:self.request delegate:self startImmediately:NO];

        NSRunLoop *runLoop = [NSRunLoop currentRunLoop];
        for (NSString *runLoopMode in self.runLoopModes) {
            [self.connection scheduleInRunLoop:runLoop forMode:runLoopMode];
            [self.outputStream scheduleInRunLoop:runLoop forMode:runLoopMode];
        }

我收到了AFnetworking信号Sigbart

* [self.outputStream scheduleInRunLoop:runLoop forMode:runLoopMode];

FLAC__STREAM_ENCODER_UNINITIALIZED

有时候

线程7 AFNetworking EX_BAD_ACESS(代码= 1,地址= OxO)

0 个答案:

没有答案