Pocochaにおけるアセットの管理/potatotips55

 Pocochaにおけるアセットの管理/potatotips55

3e66b3ccfa617b78c59d9dec865aa29f?s=128

noppefoxwolf

October 09, 2018
Tweet

Transcript

  1. 1PDPDIBʹ͓͚ΔΞηοτͷ؅ཧ QPUBUPUJQTOPQQF !OPQQFGPYXPMG 

  2. OPQQF ! גࣜձࣾσΟʔɾΤψɾΤʔ " ͖ͭͶ͔Θ͍͍ # 1PDPDIBJ04ϦʔυΤϯδχ Ξ 

  3. 1PDPDIB w ϥΠϒ഑৴ΞϓϦ w ʙ w ଟ࠼ͳΠϕϯτاըΛ࣮ࢪ w ϨϕϧʹԠͨ͡ԋग़ΪϛοΫ 

  4. Ξηοτͷྫ w ը૾ w ৭ w 4UPSZCPBSE w ϑΥϯτ w

    FUD 
  5. Ξηοτͷྫ w ը૾ w ৭ w 4UPSZCPBSE w ϑΥϯτ w

    FUD 
  6. 1PDPDIBͰͷը૾Ξηοτͷϧʔ ϧ 

  7. 1PDPDIBͰͷը૾Ξηοτͷϧʔϧ w "TTFU-JUFSBM͸࢖Θͳ͍ w จࣈྻͰϦιʔεʹΞΫηε͠ͳ͍ w *OUFSGBDFCVJMEFSͷதͰ͸ը૾Λઃఆ͠ͳ͍ w ΞϓϦΞΠίϯ͸୯Ұιʔε͔Βੜ੒ w

    μϛʔΞηοτ͸໌֬ʹϓϩδΣΫτΛ෼͚ͯ؅ཧ͢Δ 
  8. "TTFU-JUFSBM͸࢖Θͳ͍ 

  9. $PMPS-JUFSBM*NBHF-JUFSBM #imageLiteral(resourceName: "Facebook") 

  10. "TTFU-JUFSBMͷ໰୊఺ w 9DPEF্Ͱ͸ɺΞηοτͷҧ͍Λೝࣝͮ͠Β͍ 

  11. "TTFU-JUFSBMͷ໰୊఺ 

  12. "TTFU-JUFSBMͷ໰୊఺ ϓϩδΣΫτͷن໛͕େ͖͘ͳΔ΄ͲɺྨࣅͷΞηο τ͕૿͑Δɻ w ղ૾౓ͷҧ͏ը૾Ξηοτ w ۙࣅ৭ͷΧϥʔΞηοτ 

  13. "TTFU-JUFSBMͷ୅ସҊ ݁ہ͸໊લΛ෇͚ͯݺͼग़͢ࣄ͕ϕετ ݟͨ໨ʴಛ௃ͷ૊Έ߹ΘͤͰɺΞηοτΛಛఆग़དྷΔ Α͏ͳ໊લΛ෇͚Δ TriangleRed TriangleLarge 

  14. ॏෳ͢Δ໊শͷରࡦ ը໘͕ҟͳΓɺΞηοτ΋ҟͳΔ͕ɺݟͨ໨͕ࣅ͍ͯ ΔΞηοτ͕͋ΔՄೳੑ͸ࣄલʹߟྀ͓ͯ͘͠ UserProfileViewTriangleLarge ProfileEditViewTriangleLarge 

  15. ڞ௨Ͱ࢖ΘΕΔΞηοτ ෳ਺ͷϏϡʔͰར༻͞ΕΔΞηοτ͸ɺCommonΛઌ಄ ʹ͚ͭΔ CommonLeftArrow 

  16. ωʔϜεϖʔεΛ׆༻͢Δ ϏϡʔͷπϦʔߏ଄ʹࣅ໊ͨশʹͳ͍ͬͯͨ͘Ίɺ৑ ௕ͳϑΝΠϧ໊ʹͳ͍ͬͯ͘ɻ YDBTTFUTͷωʔϜεϖʔεΛ༗ޮʹ͢ΔࣄͰγϯϓϧ ͳϑΝΠϧ໊Λར༻Ͱ͖Δɻ ProfileEdit/Triangle/Large 

  17. ωʔϜεϖʔεΛ׆༻͢Δ 

  18. ωʔϜεϖʔεΛ׆༻͢Δ // Before let image = UIImage(named: "ProfileEditTriangleLarge") // After

    let image = UIImage(named: "ProfileEdit/Triangle/Large") 
  19. จࣈྻͰϦιʔεʹΞΫηε͠ͳ ͍ 

  20. จࣈྻͰΞηοτʹΞΫηε͢Δ໰୊఺ let image = UIImage(named: "TypoFileName") self.image = image! //

    nil exception ϥϯλΠϜͰ5ZQP͕ൃ֮ 1PDPDIBͰ͸ෳࡶͳ৚݅Ͱը૾Λग़͠෼͚͢ΔͨΊɺ ී௨ʹ৮͍ͬͯΔͱؾ͕෇͚ͳ͍Ξηοτ͕ଟ͘ଘࡏ 
  21. 5ZQPΛͳ͘͢ 34XJGU4XJGU(FOͳͲΛར༻ͯ͠5ZQPΛͳ͘͢ let image = Asset.ProfileEdit.Triangle.large.image ίϯύΠϧ࣌ʹλΠϙ͕ݕग़ՄೳʹͳΔ 

  22. *OUFSGBDFCVJMEFSͷதͰ͸ը૾ Λઃఆ͠ͳ͍ 

  23. *OUFSGBDFCVJMEFSͷதͰը૾Λઃఆ͢Δة ݥੑ 

  24. 

  25. $PVMEOPUMPBEUIF*NBHF/BNFJNBHF SFGFSFODFEGSPNBOJCJOUIFCVOEMFXJUI JEFOUJpFSDPNCVOEMFBQQ 

  26. ଘࡏ͠ͳ͍Ξηοτ΁ͷରࡦ *OUFSGBDF#VJMEFSͰ͸ը૾Λ࢖Θͳ͍ํ਑ w ϧʔϧͰېࢭ͢Δͷ͸ແཧ 

  27. ଘࡏ͠ͳ͍Ξηοτ΁ͷରࡦ *OBCBҴӋ IUUQTHJUIVCDPNOPQQFGPYXPMGJOBCB 

  28. ଘࡏ͠ͳ͍Ξηοτ΁ͷରࡦ $ Inaba ./Project > CaptureButton.xib ! An image is

    specified outside the code. (icon_camera) > NoticeView.xib ! An image is specified outside the code. (notice_dialog_image) > SignupViewController.storyboard ! An image is specified outside the code. (welcome) 
  29. *OUFSGBDFCVJMEFSͷத͔Βը૾Λফ͢ *#͔Βը૾Λফ͢ͱ"VUPMBZPVU͕յΕΔ͜ͱ͕͋Δ w 6**NBHF7JFX͸JNBHFΛઃఆ͢Δͱͦͷը૾αΠζ Ͱ*OUSJOTJD$POUFOU4J[F͕ͭ͘ w ໌ࣔతʹ*OUSJOTJDDPOUFOUTJ[FΛઃఆ͢Δ͜ͱͰը ૾ແ͠Ͱ΋"VUPMBZPVUΛղܾͰ͖Δ 

  30. *OUFSGBDFCVJMEFSͷத͔Βը૾Λফ͢ 

  31. ΞϓϦΞΠίϯ͸୯Ұιʔε͔Β ੜ੒ 

  32. ΞϓϦΞΠίϯͷ՝୊ ը૾Ξηοτ͸ϕΫλʔQEG͔ΒϏϧυ࣌ʹෳ਺ղ૾౓ ͷϥελը૾Λੜ੒Ͱ͖Δ Կނ͔ΞϓϦΞΠίϯ͸֤ղ૾౓ͷϥελը૾Λࣗલ Ͱ༻ҙ͠ͳ͍ͱμϝ 

  33. Ϗϧυ࣌ʹΞΠίϯΛੜ੒ IUUQTHJUIVCDPNOPQQFGPYXPMGBQQJDPOHFO 

  34. Ϗϧυ࣌ʹΞΠίϯΛੜ੒ 

  35. Ϗϧυ࣌ʹΞΠίϯΛੜ੒ QPE"QQ*DPO(FO 10%43005"QQ*DPO(FOBQQJDPOHFOJOQVU 43$3005130%6$5/".&"SUXPSLQOH YDBTTFUT43$3005130%6$5@/".& "TTFUTYDBTTFUT 

  36. μϛʔΞηοτ͸໌֬ʹϓϩδΣ ΫτΛ෼͚ͯ؅ཧ͢Δ 

  37. μϛʔΞηοτͷ՝୊ J04ΞϓϦͰΞϓϦ಺ʹσόοάϝχϡʔΛදࣔͯ͠6* ͷ֬ೝΛ͢Δͷ͸ྑ͋͘Δख๏ σόοά༻ͷ7JFX$POUSPMMFS͸#VJME$POpHVSBUJPO ͰӅͤΔ͕Ξηοτ͸Ӆ͠ʹ͍͘ 

  38. μϛʔΞηοτͷ՝୊ ͔͠͠ɺΞϓϦʹόϯυϧͯ͠͠·͏ͱʜ w ஶ࡞ݖతʹϚζΠը૾͕ʜ w ϦϦʔεલͷΞΠςϜը૾͕ʜ w ٸᬎऔΓԼ͛Δࣄʹͳͬͨը૾͕ʜ 

  39. ػೳ͝ͱʹQSPKFDU؅ཧ 

  40. QSPKFDUʹػೳ2"༻ͷΞϓϦλʔήοτΛ഑ஔ 

  41. ػೳ2"༻ͷΞϓϦͷYDBTTFUTͰ؅ཧ 

  42. ·ͱΊ w "TTFU-JUFSBM͸࢖Θͳ͍ w จࣈྻͰϦιʔεʹΞΫηε͠ͳ͍ w *OUFSGBDFCVJMEFSͷதͰ͸ը૾Λઃఆ͠ͳ͍ w ΞϓϦΞΠίϯ͸୯Ұιʔε͔Βੜ੒ 

  43.