æ¬æ¥éå¬ããããiOSオールスターズ勉強会ãã¨ããåå¼·ä¼ã«ç»å£ããã¦ããã ããéã®è³æã§ãã
â»Keynoteã§ã¤ãã£ã¦pdfã§æ¸ãã ãã¦ã¢ããããã®ã§ãæ®å¿µãªããåãè¾¼ãã§ããåç»ãè¦ããªããªã£ã¦ã¾ã
æ¦è¦
ã¹ã©ã¤ããè¦ãã®ãé¢åãªæ¹ã ã®ããã«ããã£ããæ¦è¦ãæ¸ãã¦ããã¾ãã
1. ã¢ãã¡ã¼ã·ã§ã³ç·¨
WatchKit App å´ã«å ¥ãã¦ãããStaticãªããªã½ã¼ã¹ã使ç¨ããã¢ãã¡ã¼ã·ã§ã³ã¯ `setImageNamed:` 㨠`startAnimatingWithImagesInRange〜` ã使ãã°é«éã«ã¢ãã¡ã¼ã·ã§ã³ã§ããã®ã§ãããWatchKit App ã® Asset Catalog ã«ãªããDynamicãªããªã½ã¼ã¹ã使ç¨ããå ´åã¯ã©ãã¢ãã¡ã¼ã·ã§ã³ãå®è£ ãã¹ããï¼ã¨ãã話ã
- ãã¬ã¼ã ãã¨ã® UIImage ãªãã¸ã§ã¯ããçæãã¦ãNSTimer ã§ä¸å®ééãã¨ã« `setImage:` ãããã¨ããã®ã¯ããã©ã¼ãã³ã¹çã«å ¨ç¶ã¢ã¦ãããããã®ãã¬ã¼ã ç»åããã£ãã·ã¥ããã®ãããã°ã©ãã³ã°ã¬ã¤ãã«éæ¨å¥¨ã¨æè¨ããã¦ããã
- UIImage ã® `animatedImageWithImages:duration:` ãå©ç¨ãã¦ã²ã¨ã¤ã® Animated 㪠UIImage ãªãã¸ã§ã¯ããçæãã¦ãã `setImage:` ããã®ãæ£è§£ã
2. ããã¹ãå ¥åç·¨
ããããã¢ãã¡ã¼ã·ã§ã³ãã3Dçµµæåã¨ãã
ï¼Apple Storeã®åç»ããï¼
é³å£°å ¥åã¨ããSmart Repliesï¼ãã¬ã¼ãºãé¸æãã¦è¿ä¿¡ï¼
ï¼åãããApple Storeã®åç»ããï¼
㯠WatchKit ããå©ç¨å¯è½ãªã®ãï¼ã§ããã¨ãã¦ãã©ããã£ã¦å®è£
ããã®ãï¼ã¨ãã話ã
3. ã«ã¹ã¿ã UIç·¨
Appleã«ãããã¥ã¼ãã³ã¤ã³ã¿ã¼ãã§ã¼ã¹ã¬ã¤ãã©ã¤ã³ã«è¼ã£ã¦ãããããUIã
ãããã Core Graphics ã§ãããããªãæãã®æç»ã§ããã®ï¼ã©ãããã®ï¼ã¨ãã話ã
ä»ã«ç´¹ä»ããã®ã¯ã
- ã«ã¹ã¿ã ãã©ã³ã
- æ®éã«ã§ãã
- ãªã¼ãã¼ã¬ã¤
- WKInterfaceObject ã¯ãUIView ã® subview çã«ã¤ã³ã¿ã¼ãã§ã¼ã¹å士ãéããããªã
- UIEdgeInsets çãªãã®ããªã
- â WKInterfaceGroup ã«è¨å®ã§ããèæ¯ç»åãå©ç¨ãã
- origin ã®èª¿æ´
- WKInterfaceObject ã«ã¯ãï¼UIView ã«ãããï¼ frame.origin çãªããããã£ããªã
- â WKInterfaceGroup ãæ´»ç¨ããã¨ããã£ã½ã調æ´ã§ãã
WatchKitTrials
WatchKitã«ã¾ã¤ãã諸ã ã®è©¦è¡é¯èª¤ãµã³ãã«ãã¾ã¨ãããªãã¸ããªã§ãã
https://github.com/shu223/WatchKitTrials
ï¼è¿æ¥pushäºå®ï¼
ä½è«ï¼ãããã¿é
å人çã«ã¯ãã¾ã¾ã§ã§ä¸çªã®å¤§èå°ã ããä»ã®ç»å£è
ã®æ¹ãæ¿ãã¦å½¹ç«ã¡ãããªè©±ããã¦ãããããªæ¹ã
ã°ãããªã®ã§ãçºè¡¨å
容ã¯çµæ§æ©ã¿ã¾ãããã
- ãããã¿1. ãiOSã®ã»ã³ãµå¦ç åå ¥éã
ãã iOS ã 8 ã«ãªã£ã¦ãSwift ã¨ããæ°è¨èªã¾ã§ç»å ´ãã¡ãã£ã¦ãã©ãã©ãé²åãã¦ããã¾ãããæè¿ã«ãªã£ã¦æå¤ã¨ããã£ã¦ãªããªã¼ã¨æ°ä»ããã®ããããããªãæããããå é度ã»ã³ãµã¨ãã¸ã£ã¤ãã¹ã³ã¼ãã®å¤ã®å¦çã®æ¹æ³ã
ãã¨ãã°ãiPhone ããã³ãã¨æ¯ãã¨ãæ¯ã£ã¦ããéã«å é度ã»ã³ãµã®å¤ã大ããåãããããªãã¦ãæ¢ããç¬éã«ãã¼ã¯ãç«ã¡ãç´å¾ã«å対æ¹åã«ã¾ããã¼ã¯ãç«ã¡ã¾ããããããã©ãå¦çããã®ãå®ç³ãªã®ãï¼ã¨ãã
ãã¨ãã¦ã¼ã¶ã¼å é度ã¨ãéåã¨ãã¯ã©ã¼ã¿ããªã³ã¨ããªã¤ã©ã¼è§ã¨ããããããæ±ãããã® Core Motion ã¨ã GLKit ã¨ãã
ããçç±ï¼çµå±ã®ã¨ããèªåã¯èå³ãããã ãã§å°éåéã§ã¯ãªãã®ã§ã大èå°ã§ä¸æ£ç¢ºãªãã¨ããã£ã¦ãã¾ãæããããããã¾ããã
- ãããã¿2. ãä»æ¥ããå§ããBLEã
ã¹ã©ã¤ãã®æå¾ã®ãã¼ã¸ã§ãåç¥ãã¦ããéãããiOS x BLE ããã°ã©ãã³ã° 〜Core Bluetooth å¾¹åºè§£èª¬〜ãï¼ä»®ï¼ã¨ããèæ¸ãæ¥æçºå£²äºå®ãªã®ã§ã宣ä¼ãå ¼ããããã®ã¨ãæ¬æ¸ããã°ãããªã®ã§èªä¿¡ããã£ã¦è©±ããã¨ãããã¨ã§ããã®æ¹åæ§ãæ¤è¨ãã¾ããã
ããçç±ï¼BLEã¨ãå¤é¨ããã¤ã¹é£æºã®è©±ã£ã¦ãiOSã¨ã³ã¸ãã¢ã®ä¸ã§ãèå³ããã人ãéãããã®ã§ã400人ã®åã§è©±ã話ãããªããªã¼ãã¨ãããã¨ã§ããã¾ããã
- ãããã¿3. ãiOSã®ããã¯ã°ã©ã¦ã³ãã§ã§ãããã¨ã§ããªããã¨ã®ã¾ã¨ãã
Core Bluetooth ã®æ©è½ã«ããç¶æ ã®ä¿åã¨å¾©å ãã¨ãããã¢ããªãåæ¢ãã¦ãï¼ããã»ã¹ã殺ããã¦ãï¼iOS ã BLE ã®å¦çã®ãã®ã¾ã¾å¼ãç¶ãã§ãå¿ è¦ã«å¿ãã¦ã¢ããªãèµ·ããã¦ããã ã¨ããè¶ å¼·åãªãã®ããããåããã¯ã°ã©ã¦ã³ãã¢ã¼ãã®æ©è½ã¨ãå¶ç´ãç¥ããã¨ã¯é常ã«ææ義ã ãªã¼ã¨ãããã¯ã°ã©ã¦ã³ãã¢ã¼ããä½ç½®æ å ±ã¨ããªã¼ãã£ãªã¨ããããããã£ã¦ããªãã¡ã¬ã³ã¹ã¨ãããã°ã©ãã³ã°ã¬ã¤ããããããçèªãããããããªããã
ããçç±ï¼ãã¾ãã¾ãªããã¯ã°ã©ã¦ã³ãã¢ã¼ãã«ã¤ãã¦è©³ãã調ã¹ãã®ã大å¤ãªã®ã§ããããã¾ããã
â»ã¡ãªã¿ã« Core Bluetooth ã®ãç¶æ ã®ä¿åã¨å¾©å ãã«ã¤ãã¦ã¯æèã«è©³ããæ¸ããã®ã§èå³ã®ããæ¹ã¯æ¯éï¼
ã½ã·ã
売ãä¸ãã©ã³ãã³ã°: 1,106
ãããã«
ã¹ã©ã¤ãã«æ¸ãããã¨ä»¥å¤ã«ããéç¥æ©è½ã®æ¤è¨¼ãã·ãã¥ã¬ã¼ã¿ã§ã©ãã¾ã§ã§ãããã¨ããWatchKit Extension å´ã«ã Parse SDK ãå ¥ãã¦è¦ªã¢ããªã¨åãã¦ã¼ã¶ã¼ï¼ã¢ã«ã¦ã³ãï¼ã«ãªã£ã¦ãã¼ã¿ã®ããã¨ããããã¨ãããããããå®éã«ããã£ã¦ã¿ã¦ããã£ããã¨ãããã£ãã®ã§ãããçºè¡¨æéã¯20åãããªãã®ã§ãä»åã¯è¦ãç®çã«ãããããã話ã«çµãã¾ããã
ä»ã®çºè¡¨è ã®æ¹ã ã®è©±ãé常ã«åå¼·ã«ãªãã¾ãããåå è ã®ã¿ãªãã¾ã主å¬ã® dots. ã¨ç»å£è ã®ã¿ãªãã¾ãã©ãããããã¨ããããã¾ããï¼