2012-03-22 25 views
1

http://developer.apple.com/library/mac/#documentation/Foundation/Reference/NSURLConnectionDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intf/NSURLConnectionDelegate爲什麼Apple的NSURLConnectionDelegate協議參考文檔看起來缺少東西?

只是想知道爲什麼這個協議的參考不包括像「didReceiveData」,「connectionDidFinishLoading」方法的信息?等等。

他們不推薦使用什麼嗎?他們也不會自動填充。

有沒有一種新的方法可以接收和追加數據?

+0

可能重複的[NSURLConnection方法不再在IOS5中可用](http://stackoverflow.com/questions/7803472/nsurlconnection-methods-no-more-available-in-ios5) – sch 2012-03-22 14:55:35

回答

4

他們在協議NSURLConnectionDataDelegate。在iOS的早期版本中,它們處於非正式協議中,但自iOS 5起,它們處於新的NSURLConnectionDataDelegate協議中。

+0

是的,你可以找到更多的信息在回答以前的問題:http://stackoverflow.com/a/7901893/1207152 – sch 2012-03-22 14:55:16