<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>KishikawaKatsumi</author_name>
  <author_url>https://blog.hatena.ne.jp/KishikawaKatsumi/</author_url>
  <blog_title>24/7 twenty-four seven</blog_title>
  <blog_url>https://blog.kishikawakatsumi.com/</blog_url>
  <categories>
    <anon>iPhone</anon>
    <anon>Cocoa</anon>
    <anon>iPad</anon>
    <anon>Objective-C</anon>
  </categories>
  <description>以前に「UILabelに影をつける - 24/7 twenty-four seven」という記事で紹介した CGContextSetShadow 関数の挙動が iPhone OS 3.2 (iPad と iOS 4.0) から変わっています。 具体的には影の付く方向が逆になりました。なので、以前の記事をコードをそのまま実行すると上のように右上に影が落ちるという悲しい結果になります。 修正方法は、y 方向のオフセットパラメータの指定の符号を反転します。 CGContextSetShadow(context, CGSizeMake(4.0f, -4.0f), 6.0f); CGContextSet…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kishikawakatsumi.com%2Fentry%2F20100625%2F1277478891&quot; title=&quot;グラフィックスコンテキストに影を設定する CGContextSetShadow 関数の挙動が変わっている - 24/7 twenty-four seven&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/KishikawaKatsumi/20100626/20100626000736.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-06-25 00:14:51</published>
  <title>グラフィックスコンテキストに影を設定する CGContextSetShadow 関数の挙動が変わっている</title>
  <type>rich</type>
  <url>https://blog.kishikawakatsumi.com/entry/20100625/1277478891</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
