Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NSURLRequest + NSHTTPURLResponse は明らかに役割への道です。ヘッダー情報を取得するにはどうすればよいですか?
NSHTTPURLResponse で allHeaderFields を呼び出すと、それらが辞書として返されます。
[response allHeaderFields]
ここで、response は NSHTTPURLResponse オブジェクトです。
コード内の「NSHTTPURLResponse」への参照を⌘-ダブルクリックすると、ドキュメントが表示されます。