<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Koze</author_name>
  <author_url>https://blog.hatena.ne.jp/Koze/</author_url>
  <blog_title>ObjecTips</blog_title>
  <blog_url>https://koze.hatenablog.jp/</blog_url>
  <categories>
    <anon>Tips</anon>
    <anon>Objective-C</anon>
    <anon>Photos</anon>
    <anon>PHAsset</anon>
    <anon>PHFetchResult</anon>
    <anon>PHImageManager</anon>
    <anon>PHPhotoLibrary</anon>
    <anon>写真</anon>
  </categories>
  <description>iOS 9 β2で PHAssetMediaSubtypePhotoScreenshot NS_AVAILABLE_IOS(9_0) = (1UL &lt;&lt; 2) が追加された。 これを使えば写真ライブラリからスクリーンショット画像のみを取得したり、逆にスクリーンショットを排除した画像一覧を取得する事ができる。 コードは以下 まず全ての画像アセットを取得し、enumarate する際に PHAssetMediaSubtypePhotoScreenshot マスクを使ってスクリーンショットのみを抽出する。 取得した PHAsset から画像データを取得するには PHImageManager を用いる…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoze.hatenablog.jp%2Fentry%2F2015%2F06%2F24%2F230000&quot; title=&quot;Photos.framework でスクリーンショット画像の一覧を取得する - ObjecTips&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>2015-06-24 23:00:00</published>
  <title>Photos.framework でスクリーンショット画像の一覧を取得する</title>
  <type>rich</type>
  <url>https://koze.hatenablog.jp/entry/2015/06/24/230000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
