<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toyship</author_name>
  <author_url>https://blog.hatena.ne.jp/toyship/</author_url>
  <blog_title>Toyship.org</blog_title>
  <blog_url>https://www.toyship.org/</blog_url>
  <categories>
    <anon>iOS</anon>
  </categories>
  <description>iOS7でNSURLSessionがでて、少し陰の薄くなったNSURLConnectionですが、まだまだネットワーク処理の中心としてよく使われていますよね。 NSURLConnectionの使い方は比較的簡単ですが、サブスレッドからよぶときには少し注意が必要なのでまとめてみました。 サブスレッド上の処理で何を注意すべきなのか まず、最初にサブスレッドでの処理で何を一番注意すべきなのかをおさらいしましょう。 iOSでは、画面描画には主にUIKitフレームワークを使用しますが、このフレームワークはメインスレッド上の使用のみが保証されています。 例えばサブスレッド上で画面に表示した画像（UIIma…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.toyship.org%2Farchives%2F1792&quot; title=&quot;NSURLConnectionをサブスレッドで使用する - Toyship.org&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-04-20 20:24:16</published>
  <title>NSURLConnectionをサブスレッドで使用する</title>
  <type>rich</type>
  <url>https://www.toyship.org/archives/1792</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
