<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hachinobu</author_name>
  <author_url>https://blog.hatena.ne.jp/hachinobu/</author_url>
  <blog_title>hachinoBlog</blog_title>
  <blog_url>https://hachinobu.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>背景 あるクラスのインスタンスから、そのクラスの型メソッド(クラスメソッド)を呼び出したいときにObjective-Cでは下記のようにやっていたけれどSwiftだとどう書くのか知りたかった [[instance class] classMethod]; 結論 dynamicTypeを使うことでインスタンスから型メソッド(クラスメソッド)へのアクセスが可能になる class SampleClass() { //型メソッド(クラスメソッド) static func sampleClassMethod() { print(&quot;sampleClassMethod&quot;) } } //普通の型メソッド(クラス…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhachinobu.hateblo.jp%2Fentry%2F2015%2F11%2F13%2F100945&quot; title=&quot;Swiftのインスタンスから型メソッド(クラスメソッド)を呼び出す方法 - hachinoBlog&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-11-13 10:09:45</published>
  <title>Swiftのインスタンスから型メソッド(クラスメソッド)を呼び出す方法</title>
  <type>rich</type>
  <url>https://hachinobu.hateblo.jp/entry/2015/11/13/100945</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
