{"id":3385,"date":"2017-07-16T17:33:09","date_gmt":"2017-07-16T08:33:09","guid":{"rendered":"http:\/\/ukaapple.selfip.com\/support\/?p=3385"},"modified":"2017-09-02T20:35:23","modified_gmt":"2017-09-02T11:35:23","slug":"swift_update_day2_2","status":"publish","type":"post","link":"https:\/\/minnano.app\/support\/2017\/07\/16\/swift_update_day2_2\/","title":{"rendered":"\u5b9f\u9332! 2\u5e74\u534a\u3076\u308a\u306eSwift\u30a2\u30d7\u30ea\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7 2\u65e5\u76ee \u305d\u306e2"},"content":{"rendered":"<p>\u7d9a\u304d\u3067\u3059\u3002\u4eca\u65e5\u4e2d\u306b\u7d42\u308f\u308b\u304b\u306a\u3041\u30fb\u30fb\u30fb<\/p>\n<p>\u3010\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3011<br \/>\n&#8216;utf16Count&#8217; is unavailable: Take the count of a UTF-16 view instead, i.e. str.utf16.count<br \/>\n\u3010\u4fee\u6b63\u524d\u3011<br \/>\nif 0 < newXStr.utf16Count &#038;&#038; 0 < newYStr.utf16Count &#038;&#038; Util.checkNum(newXStr) &#038;&#038; Util.checkNum(newYStr) {<br \/>\n\u3010\u4fee\u6b63\u5f8c\u3011<br \/>\nif 0 < newXStr.utf16.count &#038;&#038; 0 < newYStr.utf16.count &#038;&#038; Util.checkNum(newXStr) &#038;&#038; Util.checkNum(newYStr) {<br \/>\n\u3010\u89e3\u8aac\u3011<br \/>\nnewYStr.utf16Count \u3092 newYStr.utf16.count \u306b\u5909\u66f4\u3002<\/p>\n<p>\u3010\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3011<br \/>\nValue of type &#8216;String&#8217; has no member &#8216;toInt&#8217;<br \/>\n\u3010\u4fee\u6b63\u524d\u3011<br \/>\nvar newX : Int = newXStr.toInt()!<br \/>\n\u3010\u4fee\u6b63\u5f8c\u3011<br \/>\nvar newX : Int = Int(newXStr)! <br \/>\n\u3010\u89e3\u8aac\u3011<br \/>\nString\u304b\u3089Int\u3078\u306e\u5909\u63db\u306f\u3001Int\u30a4\u30cb\u30b7\u30e3\u30e9\u30a4\u30b6\u3092\u5229\u7528\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f(Swift2\u3067)\u305d\u3046\u3067\u3059\u30022\u7b87\u6240\u4fee\u6b63\u3002<\/p>\n<p>\u3010\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3011<br \/>\nType &#8216;String&#8217; does not conform to protocol &#8216;Sequence&#8217;<br \/>\n\u3010\u4fee\u6b63\u524d\u3011<br \/>\nfor c in str <br \/>\n\u3010\u4fee\u6b63\u5f8c\u3011<br \/>\nfor c in str.characters<br \/>\n\u3010\u89e3\u8aac\u3011<br \/>\n\u300cString\u578b\u306fSequence\u30d7\u30ed\u30c8\u30b3\u30eb\u306b\u6e96\u62e0\u3057\u3066\u3044\u307e\u305b\u3093\u300d\u3068\u306e\u3053\u3068\u3067\u3059\u3002\u6587\u5b57\u5217\u3092\uff11\u6587\u5b57\u305a\u3064\u53d6\u308a\u51fa\u3057\u3066for\u30eb\u30fc\u30d7\u3067\u51e6\u7406\u3057\u305f\u3044\u5834\u5408\u306f\u3001characters\u3092\u4f7f\u3046\u3068\u826f\u3044\u307f\u305f\u3044\u3067\u3059\u3002<br \/>\n2\u7b87\u6240\u4fee\u6b63\u3002<\/p>\n<p>\u3010\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3011<br \/>\nCannot call value of non-function type &#8216;UIColor&#8217;<br \/>\n\u3010\u4fee\u6b63\u524d\u3011<br \/>\nUIColor.lightGrayColor()<br \/>\n\u3010\u4fee\u6b63\u5f8c\u3011<br \/>\nUIColor.lightGray<br \/>\n\u3010\u89e3\u8aac\u3011<br \/>\nlightGrayColor() \u304c\u306a\u304f\u306a\u3063\u3066\u3001lightGray\u3068\u3044\u3046convenience method\u3067\u547c\u3079\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3067\u30a8\u30e9\u30fc\u5168\u90e8\u76f4\u308a\u307e\u3057\u305f\u3002\u3055\u3042\u3001\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u30fb\u30fb\u30fb<\/p>\n<p>\u30fb\u30fb<\/p>\n<p>\u30fb<\/p>\n<p>Thread 1: EXC_BAD_INSTRUCTION code=EXC_I386_INVOP, subcode=0x0)<\/p>\n<p>\u304a\u3084\u3059\u307f\u306a\u3055\u3044\u3002<br \/>\n\u3055\u3088\u3046\u306a\u30892017\u5e747\u670816\u65e5\u3002<\/p>\n<p>\u3055\u3088\u3046\u306a\u3089\u571f\u65e5\u3002<\/p>\n<p>\u30fb\u30fb\u30fb\u7d9a\u304f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7d9a\u304d\u3067\u3059\u3002\u4eca\u65e5\u4e2d\u306b\u7d42\u308f\u308b\u304b\u306a\u3041\u30fb\u30fb\u30fb \u3010\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3011 &#8216;utf16Count&#8217; is unavailable: Take the count of a UTF-16 view instead &hellip; <a href=\"https:\/\/minnano.app\/support\/2017\/07\/16\/swift_update_day2_2\/\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u5b9f\u9332! 2\u5e74\u534a\u3076\u308a\u306eSwift\u30a2\u30d7\u30ea\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7 2\u65e5\u76ee \u305d\u306e2<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-3385","post","type-post","status-publish","format-standard","hentry","category-dotter"],"_links":{"self":[{"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/posts\/3385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/comments?post=3385"}],"version-history":[{"count":1,"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/posts\/3385\/revisions"}],"predecessor-version":[{"id":4007,"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/posts\/3385\/revisions\/4007"}],"wp:attachment":[{"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/media?parent=3385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/categories?post=3385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/tags?post=3385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}