0
出現的問題在[[NSRunLoop currentRunLoop] iOS 5的崩潰runMode
while (!self.complete && [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]])
{
}
應用與信號
-[__NSCFString bytes]: unrecognized selector sent to instance 0x8577710
NSURL * dst = [NSURL URLWithString:[self.url stringByAppendingString:self.operation]]; [r setURL:dst]; \t [r setValue:dst.host forHTTPHeaderField:@「Host」]; \t [r setHTTPBody:self.request]; [r setValue:[NSString stringWithFormat:@「%d」,len] forHTTPHeaderField:@「Content-Length」]; \t [[NSNotificationCenter defaultCenter] postNotificationName:kRequestFactoryRequestStarted object:nil]; \t self.connection = [[NSURLConnection alloc] initWithRequest:r delegate:self]; –
這個問題只發生IOS 5 –
由於崩潰在等待期間發生,它更可能在您的委託方法中而不是在初始化中。你可以編輯你的問題以顯示委託方法嗎?這比閱讀評論更容易閱讀。 – emrys57