{"id":3334,"date":"2017-07-15T09:08:09","date_gmt":"2017-07-15T00:08:09","guid":{"rendered":"http:\/\/ukaapple.selfip.com\/support\/?p=3334"},"modified":"2017-09-02T20:34:07","modified_gmt":"2017-09-02T11:34:07","slug":"swift_update_day1_3","status":"publish","type":"post","link":"https:\/\/minnano.app\/support\/2017\/07\/15\/swift_update_day1_3\/","title":{"rendered":"\u5b9f\u9332! 2\u5e74\u534a\u3076\u308a\u306eSwift\u30a2\u30d7\u30ea\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7 1\u65e5\u76ee \u305d\u306e3"},"content":{"rendered":"<p>\u30b3\u30f3\u30d0\u30fc\u30c8\u3057\u305f\u3089\u30a8\u30e9\u30fc\u304c\u5897\u3048\u305f\uff01\u3068\u304b\u8a00\u3063\u3066\u3066\u3082\u30a8\u30e9\u30fc\u304c\u7121\u304f\u306a\u308b\u8a33\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u8ae6\u3081\u3066\u30a8\u30e9\u30fc\u7b87\u6240\u3092\u76f4\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u3001\u4fee\u6b63\u3057\u305f\u30a8\u30e9\u30fc\u3067\u3059\u3002<\/p>\n<p>\u3010\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3011<br \/>\nGameScene.swift:218:19: Method does not override any method from its superclass<br \/>\n\u3010\u4fee\u6b63\u524d\u3011<br \/>\noverride func touchesBegan(_ touches: NSSet, with event: UIEvent) {<br \/>\n\u3010\u4fee\u6b63\u5f8c\u3011<br \/>\noverride func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { \/\/ 3.1<br \/>\n\u3010\u89e3\u8aac\u3011<br \/>\n\u30e1\u30bd\u30c3\u30c9\u306e\u5b9a\u7fa9\u304c\u5909\u308f\u3063\u305f\u3088\u3046\u3067\u3059\u3002override\u3092\u6307\u793a\u3057\u3066\u3044\u308b\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u3001\u8a72\u5f53\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\u306b\u898b\u3064\u304b\u3089\u306a\u3044\u306e\u3067\u6012\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u6700\u65b0\u306e\u30e1\u30bd\u30c3\u30c9\u5b9a\u7fa9\u306b\u76f4\u3057\u307e\u3057\u305f\u3002NSSet\u304cSet<UITouch>\u306b\u306a\u308a\u307e\u3057\u305f\u3002Swift1.2\u3067\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30af\u30e9\u30b9Set\u304c\u8ffd\u52a0\u3055\u308c\u305f\u305f\u3081\u3001Objective-C\u304b\u3089\u3042\u3063\u305fNSSet\u3092\u7f6e\u304d\u63db\u3048\u305f\u306e\u3067\u3057\u3087\u3046\u306d\u3002UIEvent?\u306f\u3001\u30aa\u30d7\u30b7\u30e7\u30ca\u30eb\u578b\u3068\u3044\u3046\u3084\u3064\u3067\u3059\u306d\u3002nil\u3092\u8a31\u5bb9\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u304c\u3001\u306a\u305c\u8a31\u5bb9\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u3093\u3067\u3059\u304b\u306d\uff1f<\/p>\n<p>\u3010\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3011<br \/>\nGameScene.swift:221:19: Method does not override any method from its superclass<br \/>\n\u3010\u4fee\u6b63\u524d\u3011<br \/>\noverride func touchesMoved(_ touches: NSSet, with event: UIEvent) {<br \/>\n\u3010\u4fee\u6b63\u5f8c\u3011<br \/>\noverride func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) { \/\/ 3.1<br \/>\n\u3010\u89e3\u8aac\u3011<br \/>\n\u540c\u3058<\/p>\n<p>\u3010\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3011<br \/>\nGameScene.swift:224:19: Method does not override any method from its superclass<br \/>\n\u3010\u4fee\u6b63\u524d\u3011<br \/>\noverride func touchesEnded(_ touches: NSSet, with event: UIEvent) {<br \/>\n\u3010\u4fee\u6b63\u5f8c\u3011<br \/>\noverride func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) { \/\/ 3.1<br \/>\n\u3010\u89e3\u8aac\u3011<br \/>\n\u540c\u3058<\/p>\n<p>\u3010\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3011<br \/>\nGameScene.swift:227:19: Method does not override any method from its superclass<br \/>\n\u3010\u4fee\u6b63\u524d\u3011<br \/>\noverride func touchesCancelled(_ touches: NSSet!, with event: UIEvent!) {<br \/>\n\u3010\u4fee\u6b63\u5f8c\u3011<br \/>\noverride func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) { \/\/ 3.1<br \/>\n\u3010\u89e3\u8aac\u3011<br \/>\n\u540c\u3058<\/p>\n<p>\u3010\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3011<br \/>\nMissing argument label &#8216;rawValue:&#8217; in call<br \/>\n\u3010\u4fee\u6b63\u524d\u3011<br \/>\nfileprivate let m_bitmapInfo : CGBitmapInfo = CGBitmapInfo(CGImageAlphaInfo.PremultipliedLast.rawValue)<br \/>\n\u3010\u4fee\u6b63\u5f8c\u3011<br \/>\nfileprivate let m_bitmapInfo : CGBitmapInfo = CGBitmapInfo(rawValue: CGImageAlphaInfo.PremultipliedLast.rawValue) \/\/ 3.1<br \/>\n\u3010\u89e3\u8aac\u3011<br \/>\nSwift3.0\u304b\u3089\u30011\u3064\u76ee\u306e\u5f15\u6570\u306b\u3082\u30e9\u30d9\u30eb\u540d\u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u307f\u305f\u3044\u3067\u3059\u3002\u4eca\u307e\u3067\u306f2\u3064\u3081\u4ee5\u964d\u306e\u307f\u30e9\u30d9\u30eb\u540d\u304c\u5fc5\u8981\u3060\u3063\u305f\u306e\u3067\u3001\u7d71\u4e00\u611f\u304c\u51fa\u3066\u826f\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3010\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3011<br \/>\n&#8216;PremultipliedLast&#8217; has been renamed to &#8216;premultipliedLast&#8217;<br \/>\n\u3010\u4fee\u6b63\u524d\u3011<br \/>\nfileprivate let m_bitmapInfo : CGBitmapInfo = CGBitmapInfo(rawValue: CGImageAlphaInfo.PremultipliedLast.rawValue)<br \/>\n\u3010\u4fee\u6b63\u5f8c\u3011<br \/>\nfileprivate let m_bitmapInfo : CGBitmapInfo = CGBitmapInfo(rawValue: CGImageAlphaInfo.premultipliedLast.rawValue)   \/\/ 3.1<br \/>\n\u3010\u89e3\u8aac\u3011<br \/>\n&#8216;PremultipliedLast&#8217;\u306e\u5148\u982d\u304c\u5c0f\u6587\u5b57\u306b\u5909\u66f4\u306b\u306a\u3063\u305f\u3068\u306e\u3053\u3068\u3067\u3059\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;stringByAppendingPathComponent&#8217;<br \/>\n\u3010\u30a8\u30e9\u30fc\u7b87\u6240\u3011<br \/>\nlet paths1 = NSSearchPathForDirectoriesInDomains(<br \/>\n            FileManager.SearchPathDirectory.documentDirectory,<br \/>\n            FileManager.SearchPathDomainMask.userDomainMask, true)<br \/>\nlet path = paths1[0].stringByAppendingPathComponent(&#8220;settings.dat&#8221;)<br \/>\n\u3010\u5bfe\u7b56\u3011<br \/>\nextension String {<br \/>\n    func stringByAppendingPathComponent(_ path: String) -> String {<br \/>\n        let nsSt = self as NSString<br \/>\n        return nsSt.appendingPathComponent(path)<br \/>\n    }<br \/>\n}<br \/>\n\u3010\u89e3\u8aac\u3011<br \/>\nNSSearchPathForDirectoriesInDomains \u306e\u623b\u308a\u5024\u304c\u3001NSArray<NSString*>* \u304b\u3089 [String]\u306b\u5909\u308f\u3063\u3066\u3057\u307e\u3063\u305f\u3088\u3046\u3067\u3059\u3002\u3067\u3001stringByAppendingPathComponent\u306fNSString\u306e\u30e1\u30f3\u30d0\u306a\u306e\u3067\u3001\u547c\u3079\u306a\u3044\u3068\u6012\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u5bfe\u7b56\u3068\u3057\u3066\u3001\u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3\u306b\u3088\u308a\u65e2\u5b58\u306eString\u30af\u30e9\u30b9\u306bstringByAppendingPathComponent\u3092\u8ffd\u52a0\u3057\u3001\u5185\u90e8\u7684\u306bNSString\u306e\u8a72\u5f53\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3076\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002\u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3\u7d20\u6575\u3002\u306a\u304a\u3001NSString\u306e\u30e1\u30bd\u30c3\u30c9stringByAppendingPathComponent\u306f\u540d\u524d\u304cappendingPathComponent\u306b\u5909\u66f4\u3068\u306a\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u30fb\u30fb\u30fb<a href=\"\/support\/index.php\/2017\/07\/15\/swift_update_day1_4\/\">\u7d9a\u304f<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b3\u30f3\u30d0\u30fc\u30c8\u3057\u305f\u3089\u30a8\u30e9\u30fc\u304c\u5897\u3048\u305f\uff01\u3068\u304b\u8a00\u3063\u3066\u3066\u3082\u30a8\u30e9\u30fc\u304c\u7121\u304f\u306a\u308b\u8a33\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u8ae6\u3081\u3066\u30a8\u30e9\u30fc\u7b87\u6240\u3092\u76f4\u3057\u3066\u3044\u304d\u307e\u3059\u3002 \u4ee5\u4e0b\u3001\u4fee\u6b63\u3057\u305f\u30a8\u30e9\u30fc\u3067\u3059\u3002 \u3010\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3011 GameScene.swift:218:19: Meth &hellip; <a href=\"https:\/\/minnano.app\/support\/2017\/07\/15\/swift_update_day1_3\/\" 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 1\u65e5\u76ee \u305d\u306e3<\/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-3334","post","type-post","status-publish","format-standard","hentry","category-dotter"],"_links":{"self":[{"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/posts\/3334","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=3334"}],"version-history":[{"count":1,"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/posts\/3334\/revisions"}],"predecessor-version":[{"id":4003,"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/posts\/3334\/revisions\/4003"}],"wp:attachment":[{"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/media?parent=3334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/categories?post=3334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/tags?post=3334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}