<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanjoin</author_name>
  <author_url>https://blog.hatena.ne.jp/tanjoin/</author_url>
  <blog_title>役に立ちそうで役に立たないブログ</blog_title>
  <blog_url>https://tanjoin.hatenablog.com/</blog_url>
  <categories>
    <anon>Objective-C</anon>
  </categories>
  <description>NSLog で BOOL 値を表示したいときフォーマットに書けるならいいんですができません。 そこで自分で YES or NO を出力してあげる必要があります。 何も考えずに書くとこうなりますが、 if (boolValue) { NSLog(@&quot;YES&quot;); } else { NSLog(@&quot;NO&quot;); } 複数行書くくらいなら NSLog(@&quot;%@&quot;, boolValue ? @&quot;YES&quot; : @&quot;NO&quot;); のほうがすっきりするよね！ 独自で作ってもいいかも、 // 定義 MKLog(BOOL boolValue) { NSLog(@&quot;%@&quot;, boolValue ? @&quot;YES&quot; : …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftanjoin.hatenablog.com%2Fentry%2F2015%2F10%2F30%2F151630&quot; title=&quot;BOOL を NSLog するときの Format はないらしく３項演算子を使うとすっきり書ける - 役に立ちそうで役に立たないブログ&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-10-30 15:16:30</published>
  <title>BOOL を NSLog するときの Format はないらしく３項演算子を使うとすっきり書ける</title>
  <type>rich</type>
  <url>https://tanjoin.hatenablog.com/entry/2015/10/30/151630</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
