<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>komaji504</author_name>
  <author_url>https://blog.hatena.ne.jp/komaji504/</author_url>
  <blog_title>ドン・エンジニーア</blog_title>
  <blog_url>https://komaji504.hateblo.jp/</blog_url>
  <categories>
    <anon>iOS</anon>
    <anon>Swift</anon>
  </categories>
  <description>iOS の日付と時刻の設定の24時間表示が ON になっていれば24時間表示用の UILabel を、そうでなければ12時間表示用の UILabel を表示するという用に、時間表示設定によって View を切り替えたいと思ってググってみたのですが、解決策が見つからなかったので軽く調査してみました。 Locale の調査 DateFormatter を扱う時等に、強制的に24時間表記で時刻を扱えるようにと NSLocale.system を使用したことを思い出して、Locale が時間表示設定の情報を持っているのではと思って確認してみました。 (lldb) po NSLocale.system …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkomaji504.hateblo.jp%2Fentry%2F2017%2F05%2F14%2F202845&quot; title=&quot;iOS の時間表示設定を取得する - ドン・エンジニーア&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>2017-05-14 20:28:45</published>
  <title>iOS の時間表示設定を取得する</title>
  <type>rich</type>
  <url>https://komaji504.hateblo.jp/entry/2017/05/14/202845</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
