{"id":1564,"date":"2017-06-30T16:36:15","date_gmt":"2017-06-30T07:36:15","guid":{"rendered":"http:\/\/www.chihayafuru.jp\/tech\/?p=1564"},"modified":"2017-06-30T16:36:15","modified_gmt":"2017-06-30T07:36:15","slug":"objective-c%e3%81%8b%e3%82%89swift%e3%81%ae%e3%82%af%e3%83%a9%e3%82%b9%e3%81%8c%e5%8f%82%e7%85%a7%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/1564","title":{"rendered":"Objective-C\u304b\u3089Swift\u306e\u30af\u30e9\u30b9\u304c\u53c2\u7167\u3067\u304d\u306a\u3044"},"content":{"rendered":"<h2>\u8ab2\u984c<\/h2>\n<p>Objective-C\u304b\u3089Swift\u306e\u30af\u30e9\u30b9\u304c\u53c2\u7167\u3067\u304d\u306a\u3044\u3002<\/p>\n<blockquote><p><code>Use of undeclared identifier 'xxx'<\/code><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h2>\u30c1\u30a7\u30c3\u30af\u30dd\u30a4\u30f3\u30c8<\/h2>\n<h3>\u30dd\u30a4\u30f3\u30c8 1<\/h3>\n<p>Objective-C(*.m, *.mm)\u306b\u304a\u3044\u3066 ProjectName-Swift.h \u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002<\/p>\n<pre class=\"lang:objc highlight:0 decode:true \" >#import \"MyProject-Swift.h\"<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u30dd\u30a4\u30f3\u30c8 2<\/h3>\n<p>Objective-C\u304b\u3089\u53c2\u7167\u3059\u308bSwift\u3067\u5b9f\u88c5\u3059\u308b\u30af\u30e9\u30b9\u306f NSObject \u306e\u6d3e\u751f\u30af\u30e9\u30b9\u3067\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002<\/p>\n<pre class=\"lang:swift highlight:0 decode:true \" >class MyClass : NSObject {\r\n  ...\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u8ab2\u984c Objective-C\u304b\u3089Swift\u306e\u30af\u30e9\u30b9\u304c\u53c2\u7167\u3067\u304d\u306a\u3044\u3002 Use of undeclared identifier &#8216;xxx&#8217; &nbsp; \u30c1\u30a7\u30c3\u30af\u30dd\u30a4\u30f3\u30c8 \u30dd\u30a4\u30f3\u30c8 1 Objective-C(*.m, * [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[28,22],"class_list":["post-1564","post","type-post","status-publish","format-standard","hentry","category-memo","tag-objective-c","tag-swift"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=1564"}],"version-history":[{"count":7,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1564\/revisions"}],"predecessor-version":[{"id":1571,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1564\/revisions\/1571"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=1564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=1564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=1564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}