<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>glass-_-onion</author_name>
  <author_url>https://blog.hatena.ne.jp/glass-_-onion/</author_url>
  <blog_title>A Day In The Life</blog_title>
  <blog_url>https://glassonion.hatenablog.com/</blog_url>
  <categories>
    <anon>iphone</anon>
    <anon>objective-c/objc</anon>
    <anon>iOS4</anon>
  </categories>
  <description>以前は MKMapView 上に線を引いたり四角形を書いたりするのに自前で View を作成しないといけませんでしたが iOS4 になって地図上に図形を書くためのクラスが追加されました。使い方がわりと簡単なので紹介したいと思います。 地図に線を引く 地図に線を引くには MKPolyline クラスと MKPolylineView クラスを使います。山手線の渋谷駅から新宿駅に線を引く例をもとに説明します。 手順は以下の通りです。 プロジェクトに MapKit.framework を追加 UIViewController のサブクラスを作成し MKMapViewDelegate プロトコルの実装を…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fglassonion.hatenablog.com%2Fentry%2F20100623%2F1277246927&quot; title=&quot;iPhone の地図上に簡単に図形を書く方法 - A Day In The Life&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://img.f.hatena.ne.jp/images/fotolife/g/glass-_-onion/20100623/20100623072522.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-06-23 07:48:47</published>
  <title>iPhone の地図上に簡単に図形を書く方法</title>
  <type>rich</type>
  <url>https://glassonion.hatenablog.com/entry/20100623/1277246927</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
