我參考ASIHTTPRequest
並得到它在iOS5
編譯。新手卡住:ASIHTTPRequest - 沒有已知的類選擇器的方法'requestWithURL'
然而,當我嘗試使用它:
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
我得到的錯誤
no known class method for selector 'requestWithURL'.
而且setCacheStoragePolicy
和startAsynchronous
拋出錯誤。
事實上,我在ASIHTTPRequest.m
文件中看不到該方法。我錯過了什麼? 這是最新的代碼從github
下載。
謝謝, 約翰。
是的,看起來我畢竟沒有正確的代碼庫。現在我已經更新了,但是在kReachabilityChangedNotification上獲得了未聲明的標識符。 是否有一些我應該添加的框架來獲取? – 2012-01-13 01:53:25