<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takujidev</author_name>
  <author_url>https://blog.hatena.ne.jp/takujidev/</author_url>
  <blog_title>夏までにiPhone アプリつくってみっか！</blog_title>
  <blog_url>https://tf.hateblo.jp/</blog_url>
  <categories>
    <anon>Objective-C</anon>
  </categories>
  <description>音量調節ボタンやミュートボタンをアプリに追加しました。ゲーム実行時画面には音量調節とミュートのON/OFFボタン、タイトル画面にはミュートのON/OFFボタンを配置して早速テストしてみると、ゲーム内でミュートしたはずなのに再起動後のタイトル画面ではミュートが外れていたり、音量調節しても再起動後に元に戻っていたりと意味不明の動作となっていました。調節した音量やミュート状態はゲーム終了後も保持し、次回起動時に引き継ぐためNSUserDefaultsに保存していたのですが、これでは使い物になりません。調べてみると、NSUserDefaultsに値を描き込んだ後、synchronizeしないと必ずしも…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftf.hateblo.jp%2Fentry%2F2014%2F09%2F08%2F202056&quot; title=&quot;【Objective-C】NSUserDefaultsに値を書き込んだらsynchronizeをすべきなのか？ - 夏までにiPhone アプリつくってみっか！&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>http://cdn.image.st-hatena.com/image/scale/b7edc38b4720b43b558ba042855c6a41ea65c51b/enlarge=0;height=200;version=1;width=200/http%3A%2F%2Fa1509.phobos.apple.com%2Fus%2Fr30%2FPurple6%2Fv4%2Fb0%2F4d%2F0b%2Fb04d0bd3-fd3d-4e83-9957-839ebeab6a8d%2Fmzl.vmlqmikn.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-09-08 20:20:56</published>
  <title>【Objective-C】NSUserDefaultsに値を書き込んだらsynchronizeをすべきなのか？</title>
  <type>rich</type>
  <url>https://tf.hateblo.jp/entry/2014/09/08/202056</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
