{"id":1642,"date":"2022-06-07T23:02:40","date_gmt":"2022-06-07T14:02:40","guid":{"rendered":"https:\/\/www.typea.info\/blog\/?p=1642"},"modified":"2022-06-07T23:02:40","modified_gmt":"2022-06-07T14:02:40","slug":"watchos_app_prestudy","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2022\/06\/07\/watchos_app_prestudy\/","title":{"rendered":"Swift watchOS\u30a2\u30d7\u30ea\u958b\u767a\u4e8b\u524d\u78ba\u8a8d"},"content":{"rendered":"<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2022\/06\/04\/ios_watchos_dev_env\/\">iOS\u30a2\u30d7\u30ea\u3068watchOS\u3092\u9023\u643a\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u6210\u3067\u304d\u305f<\/a>\u306e\u3067\u3001watchOS\u30a2\u30d7\u30ea\u306e\u4f5c\u6210\u306b\u5411\u3051\u3066\u5916\u89b3\u3092\u3064\u304b\u3093\u3067\u304a\u3053\u3046\u3068\u601d\u3046\u3002<\/p>\n<p>\u4f8b\u306b\u3088\u3063\u3066\u3001<a href=\"https:\/\/developer.apple.com\/jp\/\">Apple Develper<\/a>\u306e\u30b5\u30a4\u30c8\u306a\u3069\u304b\u3089\u95a2\u4fc2\u3042\u308a\u305d\u3046\u306a\u3068\u3053\u308d\u304b\u3044\u3064\u307e\u307f\u306a\u304c\u3089\u3001<\/p>\n<p>\u6a5f\u68b0\u7ffb\u8a33\u3067\u8a33\u3057\u305f\u3082\u306e\u3092\u8981\u7d04\u3001\u306f\u308a\u3064\u3051\u3057\u306a\u304c\u3089\u30e1\u30e2\u3002<\/p>\n<h2>1.<a href=\"https:\/\/developer.apple.com\/documentation\/watchosapps\">watchOS Apps<\/a><\/h2>\n<p>Apple Watch\u3067\u306f\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u3092\u3067\u304d\u308b\u9650\u308a\u77ed\u304f\u3057\u307e\u3059\u3002\u91cd\u8981\u306a\u60c5\u5831\u3092\u3072\u3068\u76ee\u3067\u4f1d\u3048\u3001\u6570\u56de\u306e\u30bf\u30c3\u30d7\u3067\u53cd\u5fdc\u3059\u308b\u3088\u3046\u306b\u4fc3\u3057\u305f\u3089\u3001\u624b\u9996\u3092\u4e0b\u3052\u3066\u6b21\u306b\u9032\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30a2\u30af\u30b7\u30e7\u30f3\u304c\u6210\u529f\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5f85\u3064\u5fc5\u8981\u306f\u306a\u304f\u3001\u91cd\u8981\u306a\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u3042\u308c\u3070watchOS\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u81ea\u52d5\u7684\u306b\u901a\u77e5\u3057\u307e\u3059\u3002<\/p>\n<p>watchOS\u3067\u306f\u3001\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3088\u308a\u3082\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u306e\u8a08\u753b\u3001\u8a2d\u8a08\u3001\u6539\u826f\u306b\u591a\u304f\u306e\u6642\u9593\u3092\u8cbb\u3084\u3059\u3053\u3068\u304c\u4e88\u60f3\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30b6\u30a4\u30f3\u306e\u6307\u91dd\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/developer.apple.com\/design\/human-interface-guidelines\/watchos\/overview\/getting-started\/\">Apple Watch Human Interface Guidelines<\/a>\u3092\u53c2\u7167\u3002<\/p>\n<h3>1.1 \u30e1\u30a4\u30f3\u30a2\u30d7\u30ea<\/h3>\n<p>\u30a6\u30a9\u30c3\u30c1\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u306e\u57fa\u76e4\u3068\u306a\u308b\u3082\u306e\u3067\u3059\u3002\u8ab0\u3067\u3082\u30a2\u30d7\u30ea\u3092\u76f4\u63a5\u8d77\u52d5\u3057\u3001\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u30a2\u30d7\u30ea\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306f\u3001\u5fc5\u305a\u3057\u3082\u4eba\u3005\u304c\u30a2\u30d7\u30ea\u3068\u5bfe\u8a71\u3059\u308b\u4e3b\u306a\u65b9\u6cd5\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u591a\u304f\u306e\u4eba\u306f\u3001\u30b3\u30f3\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u901a\u77e5\u3092\u901a\u3058\u3066\u5bfe\u8a71\u3059\u308b\u3053\u3068\u3092\u597d\u307f\u3001\u30a2\u30d7\u30ea\u3092\u660e\u793a\u7684\u306b\u8d77\u52d5\u3059\u308b\u3053\u3068\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h3>1.2 \u30b3\u30f3\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<\/h3>\n<p>\u30b3\u30f3\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30a2\u30d7\u30ea\u306e\u30c7\u30fc\u30bf\u3092\u30a6\u30a9\u30c3\u30c1\u30d5\u30a7\u30a4\u30b9\u4e0a\u3067\u76f4\u63a5\u78ba\u8a8d\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u307b\u3068\u3093\u3069\u306e\u6642\u8a08\u306e\u6587\u5b57\u76e4\u306b\u30b3\u30f3\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u30b9\u30da\u30fc\u30b9\u306f\u9650\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30bf\u30a4\u30e0\u30ea\u30fc\u3067\u3001\u6700\u65b0\u306e\u3001\u305d\u3057\u3066\u5f79\u306b\u7acb\u3064\u60c5\u5831\u3092\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u30c7\u30b6\u30a4\u30f3\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305f\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u30b3\u30f3\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30bf\u30c3\u30d7\u3059\u308b\u3053\u3068\u3067\u3001\u3059\u3070\u3084\u304f\u7c21\u5358\u306bwatchOS\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8d77\u52d5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>1.3 \u901a\u77e5<\/h3>\n<p>\u91cd\u8981\u306a\u30a4\u30d9\u30f3\u30c8\u767a\u751f\u307e\u305f\u3001\u30a2\u30d7\u30ea\u3092\u958b\u304b\u306a\u304f\u3066\u3082\u3059\u3050\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30a2\u30d7\u30ea\u304c\u8d77\u52d5\u3057\u3066\u3044\u306a\u304f\u3066\u3082\u3001\u30ed\u30fc\u30ab\u30eb\u901a\u77e5\u3068\u30ea\u30e2\u30fc\u30c8\u901a\u77e5\u306e\u3044\u305a\u308c\u304b\u3092\u4f7f\u3063\u3066\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u3068\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>1.4 Siri<\/h3>\n<p>Siri\u3092\u4f7f\u3063\u3066\u3001\u3042\u306a\u305f\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u306e\u65b9\u6cd5\u3092\u5e83\u3052\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>SiriKit Intents\u3092\u4f7f\u3048\u3070\u3001\u4eba\u3005\u306f\u3042\u306a\u305f\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u58f0\u3067\u64cd\u4f5c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u540c\u69d8\u306b\u3001\u3042\u306a\u305f\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001Siri\u306e\u30a6\u30a9\u30c3\u30c1\u30d5\u30a7\u30a4\u30b9\u306b\u8868\u793a\u3055\u308c\u308b\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092\u30b7\u30b9\u30c6\u30e0\u306b\u5bc4\u4ed8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/developer.apple.com\/documentation\/watchos-apps\/building_a_watchos_app\/\">SwiftUI\u306b\u3088\u308bwatchOS\u30a2\u30d7\u30ea\u306e\u69cb\u7bc9<\/a>\u306e\u8aac\u660e\u304c<a href=\"https:\/\/developer.apple.com\/documentation\/watchos-apps\/building_a_watchos_app\/\">\u3053\u3053<\/a>\u306b\u8a18\u8ff0\u3055\u308c\u3066\u304a\u308a\u63a8\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3060\u304c\u3001Storyboard\u306e\u65b9\u304c\u808c\u306b\u5408\u3046\u306e\u3067\u305d\u3061\u3089\u3092\u5229\u7528\u3059\u308b\u3002<\/p>\n<h2><a href=\"https:\/\/developer.apple.com\/documentation\/example-articles\/creating-independent-watchos-apps\">3.\u72ec\u7acb\u3057\u305fwatchOS\u30a2\u30d7\u30ea\u306e\u4f5c\u6210<\/a><\/h2>\n<p>Xcode\u3067watchOS\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u69cb\u6210\u3059\u308b\u306b\u306f\u3001\u6b21\u306e2\u3064\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>3.1 \u30a6\u30a9\u30c3\u30c1\u30a2\u30d7\u30ea<\/h3>\n<p>\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001Apple Watch\u3067\u306e\u307f\u5229\u7528\u53ef\u80fd\u3067\u3001\u95a2\u9023\u3059\u308biOS\u30a2\u30d7\u30ea\u304c\u306a\u3044\u65b0\u3057\u3044\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h3>3.2 iOS\u30a2\u30d7\u30ea\u3068Watch\u30a2\u30d7\u30ea<\/h3>\n<p>iOS\u30a2\u30d7\u30ea\u304c\u3042\u308a\u3001\u985e\u4f3c\u307e\u305f\u306f\u95a2\u9023\u3059\u308b\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u3092\u63d0\u4f9b\u3059\u308bwatchOS\u30a2\u30d7\u30ea\u3092\u63d0\u4f9b\u3057\u305f\u3044\u5834\u5408\u306b\u3001\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>watchOS \u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u3001\u30d3\u30eb\u30c9\u3057\u305f\u3044 watchOS \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7a2e\u985e\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002watchOS \u30a2\u30d7\u30ea\u3092 iOS \u30a2\u30d7\u30ea\u306b\u30d0\u30f3\u30c9\u30eb\u3059\u308b\u5834\u5408\u3001watchOS \u30a2\u30d7\u30ea\u304c iOS \u30b3\u30f3\u30d1\u30cb\u30aa\u30f3\u3068\u3069\u306e\u3088\u3046\u306b\u76f8\u4e92\u4f5c\u7528\u3059\u308b\u304b\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>3.3 \u72ec\u7acb\u3057\u305f\u30a2\u30d7\u30ea<\/h3>\n<p>iOS\u306e\u30b3\u30f3\u30d1\u30cb\u30aa\u30f3\u30a2\u30d7\u30ea\u304c\u306a\u304f\u3066\u3082\u3001\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306f\u3001iOS\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001watchOS\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001\u307e\u305f\u306f\u305d\u306e\u4e21\u65b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>3.4 \u4f9d\u5b58\u3059\u308b\u30a2\u30d7\u30ea<\/h3>\n<p>iOS\u30b3\u30f3\u30d1\u30cb\u30aa\u30f3\u304c\u6b63\u3057\u304f\u6a5f\u80fd\u3059\u308b\u3088\u3046\u306b\u3001\u4f9d\u5b58\u3059\u308b\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f9d\u5b58\u30a2\u30d7\u30ea\u306f\u3001watchOS\u30a2\u30d7\u30ea\u304c\u30b3\u30f3\u30d1\u30cb\u30aa\u30f3\u3068\u76f8\u4e92\u4f5c\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306b\u306e\u307f\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u306f\u3001iOS\u30b3\u30f3\u30d1\u30cb\u30aa\u30f3\u3068\u4e00\u7dd2\u306bwatchOS\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8cfc\u5165\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>watchOS 5\u304a\u3088\u3073\u305d\u308c\u4ee5\u524d\u3067\u306f\u3001\u3059\u3079\u3066\u306ewatchOS\u30a2\u30d7\u30ea\u306f\u4f9d\u5b58\u3059\u308b\u30a2\u30d7\u30ea\u3067\u3059\u3002<\/p>\n<p>watchOS 6\u4ee5\u964d\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306fApple Watch\u4e0a\u3067App Store\u304b\u3089\u76f4\u63a5watchOS\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8cfc\u5165\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>watchOS 6.2\u4ee5\u964d\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306fApple Watch\u3067\u76f4\u63a5\u30a2\u30d7\u30ea\u5185\u8ab2\u91d1\u3092\u884c\u3046\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u30b3\u30f3\u30d1\u30cb\u30aa\u30f3watchOS\u304a\u3088\u3073iOS\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u30a2\u30d7\u30ea\u5185\u8ab2\u91d1\u306f\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u3067\u3059\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u306f\u4e00\u5ea6\u8cfc\u5165\u3059\u308c\u3070\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u306fwatchOS\u3068iOS\u306e\u4e21\u65b9\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u8a73\u3057\u304f\u306f\u3001<a href=\"https:\/\/developer.apple.com\/documentation\/storekit\/original_api_for_in-app_purchase\">Original API for In-App Purchase<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u72ec\u7acb\u3057\u305f\u30a2\u30d7\u30ea\u3001\u4f9d\u5b58\u3057\u305f\u30a2\u30d7\u30ea\u3068\u3082\u306b\u3001watchOS\u30a2\u30d7\u30ea\u3092\u76f4\u63a5Apple Watch\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u4ed5\u7d44\u307f\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001iOS\u30a2\u30d7\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7d42\u4e86\u3059\u308b\u307e\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u5f93\u5c5e\u30a2\u30d7\u30ea\u304b\u3089watchOS\u30a2\u30d7\u30ea\u3092\u8d77\u52d5\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<h3>3.5 \u6642\u8a08\u5c02\u7528\u30a2\u30d7\u30ea\u306e\u4f5c\u6210<\/h3>\n<p>\u30a6\u30a9\u30c3\u30c1\u5c02\u7528\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001Xcode \u3067\u65b0\u3057\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u958b\u59cb\u3057\u3001Watch App \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>WatchKit App \u30d5\u30a9\u30eb\u30c0\u306b\u306f\u3001\u30a2\u30d7\u30ea\u304c\u4f7f\u7528\u3059\u308b\u30a2\u30bb\u30c3\u30c8\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>WatchKit Extension \u30d5\u30a9\u30eb\u30c0\u306b\u306f\u3001\u30a2\u30d7\u30ea\u306e\u30b3\u30fc\u30c9\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Xcode\u306f\u307e\u305f\u3001\u3042\u306a\u305f\u306e\u30a2\u30d7\u30ea\u306e\u305f\u3081\u306e3\u3064\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u3001\u3042\u306a\u305f\u304c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30c6\u30b9\u30c8\u306e\u305f\u3081\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u30eb\u30fc\u30c8\u30bf\u30fc\u30b2\u30c3\u30c8\u306f\u30b9\u30bf\u30d6\u3067\u3001App Store\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u63d0\u51fa\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306e\u30e9\u30c3\u30d1\u30fc\u3068\u3057\u3066\u6a5f\u80fd\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ed6\u306e2\u3064\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u306f\u3001\u305d\u308c\u305e\u308c WatchKit \u30a2\u30d7\u30ea\u3068 WatchKit \u62e1\u5f35\u3092\u8868\u3057\u307e\u3059\u3002<\/p>\n<h2>4.\u4e3b\u306a\u30af\u30e9\u30b9<\/h2>\n<p>\u306a\u3093\u3068\u306a\u304f\u96f0\u56f2\u6c17\u304c\u308f\u304b\u3063\u3066\u304d\u305f\u306e\u3067\u3001\u307e\u305a\u306f\u3001\u30e1\u30a4\u30f3\u30a2\u30d7\u30ea\u3092\u8a66\u3057\u3066\u307f\u3088\u3046\u3002\u30b3\u30f3\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u901a\u77e5\u306f\u8ffd\u3063\u3066\u3002<\/p>\n<p>WKInterfaceController\u306e\u6982\u7565\u3060\u3051\u898b\u3066\u304a\u304f\u3002<\/p>\n<h3>4.1\u00a0<a href=\"https:\/\/developer.apple.com\/documentation\/watchkit\/wkinterfacecontroller\">WKInterfaceController (<\/a>\u30e1\u30a4\u30f3\u30a2\u30d7\u30ea)<\/h3>\n<p>watchOS\u30a2\u30d7\u30ea\u3067\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u30a4\u30f3\u30d5\u30e9\u3092\u63d0\u4f9b\u3059\u308b\u30af\u30e9\u30b9\u3002<\/p>\n<p>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306f\u3001\u5b9f\u969b\u306e\u30d3\u30e5\u30fc\u3092\u7ba1\u7406\u3057\u306a\u3044\u3053\u3068\u3092\u9664\u3051\u3070\u3001UIKit \u30a2\u30d7\u30ea\u306b\u304a\u3051\u308b UIViewController \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u540c\u3058\u5f79\u5272\u3092\u679c\u305f\u3057\u307e\u3059\u3002<\/p>\n<p>WatchKit \u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3\u306e\u4e2d\u3067\u52d5\u4f5c\u3057\u3001Watch \u30a2\u30d7\u30ea\u306e storyboard \u30d5\u30a1\u30a4\u30eb\u306b\u3042\u308b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30fb\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306b\u95a2\u9023\u3057\u305f\u52d5\u4f5c\u3092\u30ea\u30e2\u30fc\u30c8\u3067\u7ba1\u7406\u3057\u307e\u3059\u3002<\/p>\n<p>WKInterfaceController \u306e\u30b5\u30d6\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066 storyboard \u30b7\u30fc\u30f3\u306e\u8981\u7d20\u3092\u8a2d\u5b9a\u3057\u3001\u305d\u308c\u3089\u306e\u8981\u7d20\u3068\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u306b\u5fdc\u7b54\u3059\u308b\u3002<\/p>\n<p>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30fb\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u30b3\u30fc\u30c9\u306f\u3001\u30e6\u30fc\u30b6\u306e Apple Watch \u4e0a\u3067\u30ed\u30fc\u30ab\u30eb\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u304c\u3001\u305d\u308c\u304c\u7ba1\u7406\u3059\u308b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3068\u306f\u5225\u306e\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u30b3\u30fc\u30c9\u5185\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5024\u3092\u5909\u66f4\u3059\u308b\u3068\u3001\u30b7\u30b9\u30c6\u30e0\u304c\u5fc5\u8981\u306a\u60c5\u5831\u3092 Watch \u30a2\u30d7\u30ea\u306b\u8ee2\u9001\u3057\u3001Watch \u30a2\u30d7\u30ea\u304c\u753b\u9762\u4e0a\u3067\u5bfe\u5fdc\u3059\u308b\u5909\u66f4\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h4>4.1.1 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u521d\u671f\u5316\u3059\u308b<\/h4>\n<p>\u30e6\u30fc\u30b6\u304c\u3042\u306a\u305f\u306e\u30a2\u30d7\u30ea\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3068\u30a4\u30f3\u30bf\u30e9\u30af\u30c8\u3059\u308b\u3068\u304d\u3001\u30b7\u30b9\u30c6\u30e0\u306f\u3042\u306a\u305f\u306e\u62e1\u5f35\u6a5f\u80fd\u3092\u8d77\u52d5\u3057\u3001\u9069\u5207\u306a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u81ea\u52d5\u7684\u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a2\u30d7\u30ea\u306f\u3001\u901a\u77e5\u3068\u30a2\u30d7\u30ea\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u3001\u7570\u306a\u308b\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u30fb\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002WatchKit \u306f\u3001\u30a2\u30d7\u30ea\u306e\u30e1\u30a4\u30f3\u30b9\u30c8\u30fc\u30ea\u30fc\u30dc\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u60c5\u5831\u3092\u4f7f\u7528\u3057\u3066\u3001\u3069\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u30fb\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u8aad\u307f\u8fbc\u3080\u304b\u3092\u6c7a\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u901a\u77e5\u30b7\u30fc\u30f3\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u304c\u8b58\u5225\u3067\u304d\u308b\u3088\u3046\u306b\u7279\u5225\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30a2\u30d7\u30ea\u306e\u5834\u5408\u3001WatchKit \u306f\u30a2\u30d7\u30ea\u306e\u30e1\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u6700\u521d\u306b\u30ed\u30fc\u30c9\u3057\u307e\u3059\u304c\u3001\u8d77\u52d5\u6642\u306b\u6700\u521d\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h5>init()\u00a0<\/h5>\n<p>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30fb\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u6210\u3059\u308b\u969b\u3001WatchKit \u306f\u305d\u306e\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u3001init() \u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u5909\u6570\u306e\u521d\u671f\u5316\u3084\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u8fbc\u307f\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3057\u304b\u3057\u3001<span style=\"text-decoration: underline;\">\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u8a2d\u5b9a\u306b\u306f\u4f7f\u7528\u3057\u306a\u3044<\/span>\u3067\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u5b9f\u884c\u3055\u308c\u308b\u3068\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u8981\u7d20\u304c\u9069\u5207\u306b\u521d\u671f\u5316\u3055\u308c\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h5>awake(withContext:)<\/h5>\n<p>\u6b21\u306b\u3001awake(withContext:) \u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002WatchKit \u304c\u6709\u52b9\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092 awake(withContext:) \u30e1\u30bd\u30c3\u30c9\u306b\u6e21\u3057\u305f\u5834\u5408\u3001\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u60c5\u5831\u3092\u4f7f\u3063\u3066\u3001\u521d\u671f\u5316\u51e6\u7406\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u307e\u3059\u3002\u307e\u305f\u3001<span style=\"text-decoration: underline;\">\u3053\u306e\u6642\u70b9\u3067\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u8981\u7d20\u304c\u5229\u7528\u3067\u304d\u308b\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\u3066\u3044\u307e\u3059<\/span>\u3002\u3064\u307e\u308a\u3001\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u5b89\u5168\u306b\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h5>willActivate()\u00a0<\/h5>\n<p>willActivate() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u304c\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u306a\u308a\u305d\u3046\u306a\u3068\u304d\u306b\u305d\u308c\u3092\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u66f4\u65b0\u3092\u78ba\u8a8d\u3059\u308b\u306a\u3069\u3001\u76f4\u524d\u306e\u30bf\u30b9\u30af\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b willActivate() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059; \u3057\u304b\u3057\u3001<span style=\"text-decoration: underline;\">\u4e3b\u8981\u306a\u521d\u671f\u5316\u306b\u306f\u4f7f\u7528\u3057\u306a\u3044<\/span>\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>willActivate()\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u3042\u306a\u305f\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u304c\u307e\u3060\u753b\u9762\u4e0a\u306b\u306a\u3044\u6642\u306b\u547c\u3073\u51fa\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001WatchKit \u306f\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u66f4\u65b0\u3059\u308b\u6642\u9593\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u3001\u4e8b\u524d\u306b\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002WatchKit \u306f didAppear() \u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u3066\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u898b\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3053\u3068\u3092\u77e5\u3089\u305b\u307e\u3059\u3002\u540c\u69d8\u306b\u3001WatchKit \u306f\u3042\u306a\u305f\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u518d\u3073\u753b\u9762\u5916\u306b\u79fb\u52d5\u3059\u308b\u3068\u3001willDisappear() \u3068 didDeactivate() \u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n<blockquote>\n<p>\u91cd\u8981<\/p>\n<p>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306f\u3001 awake(withContext:) \u30e1\u30bd\u30c3\u30c9\u3001 willActivate() \u30e1\u30bd\u30c3\u30c9\u3001\u304a\u3088\u3073\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u9593\u306e\u307f\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u304c didDeactivate() \u30e1\u30bd\u30c3\u30c9\u3092\u30b3\u30fc\u30eb\u3059\u308b\u3068\u3001 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e willActivate() \u30e1\u30bd\u30c3\u30c9\u3092\u518d\u3073\u30b3\u30fc\u30eb\u3059\u308b\u307e\u3067\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5024\u3092\u5909\u66f4\u3057\u3088\u3046\u3068\u3059\u308b\u8a66\u307f\u3092\u7121\u8996\u3057\u307e\u3059\u3002<\/p>\n<\/blockquote>\n<p>iOS Simulator \u3067\u306f\u3001Hardware &gt; Lock \u3092\u9078\u629e\u3057\u3066\u30b7\u30df\u30e5\u30ec\u30fc\u30bf\u3092\u30ed\u30c3\u30af\u3059\u308b\u3068\u3001WatchKit \u306f\u73fe\u5728\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e didDeactivate() \u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001Simulator \u3092\u30a2\u30f3\u30ed\u30c3\u30af\u3059\u308b\u3068\u3001WatchKit \u306f\u305d\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e willActivate() \u30e1\u30bd\u30c3\u30c9\u3092\u518d\u3073\u547c\u3073\u51fa\u3057\u307e\u3059\u3002\u3053\u306e\u6a5f\u80fd\u306f\u3001\u30a2\u30af\u30c6\u30a3\u30d9\u30fc\u30b7\u30e7\u30f3\u3068\u30c7\u30a2\u30af\u30c1\u30d9\u30fc\u30b7\u30e7\u30f3\u306e\u30b3\u30fc\u30c9\u3092\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>4.1.2 \u30b5\u30d6\u30af\u30e9\u30b9\u306b\u95a2\u3059\u308b\u6ce8\u610f\u4e8b\u9805<\/h4>\n<p>WKInterfaceController \u306e\u30b5\u30d6\u30af\u30e9\u30b9\u306f\u3001\u5b9f\u884c\u6642\u306b\u8a2d\u5b9a\u304c\u5fc5\u8981\u306a\u30b9\u30c8\u30fc\u30ea\u30fc\u30dc\u30fc\u30c9\u30fb\u30b7\u30fc\u30f3\u3084\u3001\u30e6\u30fc\u30b6\u30fc\u3068\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u3092\u51e6\u7406\u3059\u308b\u30b7\u30fc\u30f3\u304c\u3042\u308b\u5834\u5408\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002\u901a\u5e38\u3001\u30a2\u30d7\u30ea\u304c\u7ba1\u7406\u3059\u308b\u5404\u30b9\u30c8\u30fc\u30ea\u30fc\u30dc\u30fc\u30c9\u30b7\u30fc\u30f3\u306b\u30ab\u30b9\u30bf\u30e0\u30b5\u30d6\u30af\u30e9\u30b9\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u30b5\u30d6\u30af\u30e9\u30b9\u3067\u306f\u3001\u69cb\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30a2\u30a6\u30c8\u30ec\u30c3\u30c8\u3092\u5b9a\u7fa9\u3057\u3001\u30b9\u30c8\u30fc\u30ea\u30fc\u30dc\u30fc\u30c9\u30fb\u30b7\u30fc\u30f3\u306e\u8981\u7d20\u3068\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u306b\u5fdc\u7b54\u3059\u308b\u305f\u3081\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a2\u30d7\u30ea\u3067\u4f7f\u7528\u3059\u308b\u307b\u3068\u3093\u3069\u306e\u30ab\u30b9\u30bf\u30e0\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306f\u3001\u30ab\u30b9\u30bf\u30e0\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u30b5\u30d6\u30af\u30e9\u30b9\u304c\u5fc5\u8981\u3067\u3059\u3002\u30b0\u30e9\u30f3\u30b9\u3067\u3082\u3001\u30b0\u30e9\u30f3\u30b9\u306e\u5185\u5bb9\u3092\u66f4\u65b0\u3059\u308b\u305f\u3081\u306b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304c\u5fc5\u8981\u3067\u3059\u3002\u30ab\u30b9\u30bf\u30e0\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f7f\u7528\u3067\u304d\u306a\u3044\u552f\u4e00\u306e\u30b9\u30c8\u30fc\u30ea\u30fc\u30dc\u30fc\u30c9\u30fb\u30b7\u30fc\u30f3\u306f\u3001\u9759\u7684\u901a\u77e5\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u306b\u95a2\u9023\u3059\u308b\u30b7\u30fc\u30f3\u3067\u3059\u3002\u52d5\u7684\u901a\u77e5\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u7528\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u5b9f\u88c5\u3059\u308b\u5834\u5408\u306f\u3001\u4ee3\u308f\u308a\u306b WKUserNotificationInterfaceController \u3092\u30b5\u30d6\u30af\u30e9\u30b9\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u8a2d\u5b9a\u3057\u3001\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u30af\u30e9\u30b9\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u3059\u3079\u3066\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u307e\u3059\u3002\u307b\u3068\u3093\u3069\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306f\u3001 init() \u30e1\u30bd\u30c3\u30c9\u3068 awake(withContext:) \u30e1\u30bd\u30c3\u30c9\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u4ed6\u3001\u5fc5\u8981\u306a\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308c\u3070\u305d\u308c\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u307e\u3059\u3002<\/p>\n<h3>4.2 <a href=\"https:\/\/developer.apple.com\/documentation\/clockkit\/clkcomplicationdatasource\">CLKComplicationDataSource<\/a>(\u30b3\u30f3\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3)<\/h3>\n<h3>4.3 <a href=\"https:\/\/developer.apple.com\/documentation\/watchkit\/wkusernotificationinterfacecontroller\">WKUserNotificationInterfaceController<\/a>(\u901a\u77e5)<\/h3>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>iOS\u30a2\u30d7\u30ea\u3068watchOS\u3092\u9023\u643a\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u6210\u3067\u304d\u305f\u306e\u3067\u3001watchOS\u30a2\u30d7\u30ea\u306e\u4f5c\u6210\u306b\u5411\u3051\u3066\u5916\u89b3\u3092\u3064\u304b\u3093\u3067\u304a\u3053\u3046\u3068\u601d\u3046\u3002 \u4f8b\u306b\u3088\u3063\u3066\u3001Apple Develper\u306e\u30b5\u30a4\u30c8\u306a\u3069\u304b\u3089\u95a2\u4fc2\u3042\u308a\u305d\u3046\u306a\u3068\u3053\u308d\u304b\u3044\u3064\u307e\u307f\u306a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[127,194,126],"tags":[130,195,129],"class_list":["post-1642","post","type-post","status-publish","format-standard","hentry","category-swift","category-watchos","category-xcode","tag-swift","tag-watchos","tag-xcode"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1642"}],"version-history":[{"count":1,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1642\/revisions"}],"predecessor-version":[{"id":1643,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1642\/revisions\/1643"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}