2011-08-17 185 views
0

我有一個表視圖,其中Iam選擇表視圖的行,然後它擊中Web服務,檢索數據,然後顯示。現在,這是Iam獲得的錯誤日誌。應用程序崩潰時,Web服務

終止應用程序由於未捕獲的異常 'NSInvalidArgumentException',原因是:「 -

[__NSCFData setDownloadedLogoImage:]: unrecognized selector sent to instance 0x806cf90' 
*** Call stack at first throw: 

(
    0 CoreFoundation      0x02abdb99 __exceptionPreprocess + 185 
    1 libobjc.A.dylib      0x02c0d40e objc_exception_throw + 47 
    2 CoreFoundation      0x02abf6ab -[NSObject(NSObject) doesNotRecognizeSelector:] + 187 
    3 CoreFoundation      0x02a2f2b6 ___forwarding___ + 966 
    4 CoreFoundation      0x02a2ee72 _CF_forwarding_prep_0 + 50 
    5 FlightSearch      0x000401ef -[AirlineNames connectionDidFinishImage:] + 168 
    6 FlightSearch      0x0002f535 -[SAHttpManager connectionDidFinishLoading:] + 195 
    7 Foundation       0x001acb96 -[NSURLConnection(NSURLConnectionReallyInternal) sendDidFinishLoading] + 108 
    8 Foundation       0x001acaef _NSURLConnectionDidFinishLoading + 133 
    9 CFNetwork       0x0307172f _ZN19URLConnectionClient23_clientDidFinishLoadingEPNS_26ClientConnectionEventQueueE + 285 
    10 CFNetwork       0x0313cfcf _ZN19URLConnectionClient26ClientConnectionEventQueue33processAllEventsAndConsumePayloadEP20XConnectionEventInfoI12XClientEvent18XClientEventParamsEl + 389 
    11 CFNetwork       0x03066968 _ZN19URLConnectionClient13processEventsEv + 100 
    12 CFNetwork       0x030667e5 _ZN17MultiplexerSource7performEv + 251 
    13 CoreFoundation      0x02a9efaf __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15 
    14 CoreFoundation      0x029fd39b __CFRunLoopDoSources0 + 571 
    15 CoreFoundation      0x029fc896 __CFRunLoopRun + 470 
    16 CoreFoundation      0x029fc350 CFRunLoopRunSpecific + 208 
    17 CoreFoundation      0x029fc271 CFRunLoopRunInMode + 97 
    18 GraphicsServices     0x032b000c GSEventRunModal + 217 
    19 GraphicsServices     0x032b00d1 GSEventRun + 115 
    20 UIKit        0x00419af2 UIApplicationMain + 1160 
    21 FlightSearch      0x00001e86 main + 84 
    22 FlightSearch      0x00001e29 start + 53 
    23 ???         0x00000001 0x0 + 1 
) 

terminate called after throwing an instance of 'NSException' 

請建議我該怎麼做。

+0

也許有些源代碼? – 2011-08-17 12:34:57

回答

0

您正在發送消息setDownloadedLogoImage:到一個NSData對象,它不知道該如何處理它!發生兩件事之一:

1)你沒有保留一些東西。看看你希望打電話給setDownloadedLogoImage的任何對象,並找出你在哪裏創建它 - 你應該保留在那裏;)

2)(較不可能)你的代碼是錯的!將其添加到您的問題,我們可以看看。

相關問題