<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>koogawa</author_name>
  <author_url>https://blog.hatena.ne.jp/koogawa/</author_url>
  <blog_title>koogawa blog</blog_title>
  <blog_url>https://koogawa.hateblo.jp/</blog_url>
  <categories>
    <anon>Objective-C</anon>
    <anon>iOS</anon>
    <anon>Tips</anon>
  </categories>
  <description>2016.4.23 追記：Swift版の記事を書きました。 blog.koogawa.com CoreMotionを使って、歩数カウントを取得する方法をメモしておきます。 実装方法 まずは「CoreMotion.framework」を追加します。 ヘッダをインポートします。 #import &lt;CoreMotion/CoreMotion.h&gt; インスタンスを生成します。 _stepCounter = [[CMStepCounter alloc] init]; 歩数のカウントを開始します。 [_stepCounter startStepCountingUpdatesToQueue:[NSOpera…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoogawa.hateblo.jp%2Fentry%2F2013%2F11%2F28%2F013437&quot; title=&quot;【Tips】iOSで歩数をカウントする - koogawa blog&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-ak.f.st-hatena.com/images/fotolife/k/koogawa/20131122/20131122152458.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-11-28 01:34:37</published>
  <title>【Tips】iOSで歩数をカウントする</title>
  <type>rich</type>
  <url>https://koogawa.hateblo.jp/entry/2013/11/28/013437</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
