๊ด€๋ฆฌ ๋ฉ”๋‰ด

Welcome! Everything is fine.

[TIL] 220122 ๋ณธ๋ฌธ

TIL

[TIL] 220122

๊ฐœ๋ฐœ๊ณฐ๋ฐœ 2022. 1. 22.
728x90

๐Ÿ’ป Today I Leaned...

๐Ÿ“Œ ์•„์ดํฐ ์•ฑ ๊ฐœ๋ฐœ(Swift4 & iOS11) ์ž…๋ฌธ 1ํŽธ

๋ถ€๋“์ดํ•˜๊ฒŒ ์‹ค์Šตํ™˜๊ฒฝ์„ ๋งŒ๋“ค ์ˆ˜ ์—†์–ด ๊ฐ€๋ณ๊ฒŒ ํ›‘๊ณ  ์ง€๋‚˜๊ฐ€๋Š” ๋ฐฉ์‹์œผ๋กœ ๋“ค์—ˆ๋‹ค.

Label

  • Label : ์‚ฌ์šฉ์ž๊ฐ€ ์ฝ์„ ์ˆ˜ ์žˆ๋Š”(์“ฐ๊ธฐX) ํ…์ŠคํŠธ๋ฅผ ๋ณด์—ฌ์ฃผ๋Š” ์ปจํŠธ๋กค
  • Lines ๋ฅผ 0์œผ๋กœ ์„ค์ •ํ•˜๋ฉด ๋„˜์–ด๊ฐ€๋Š” ์ค„์ด ๋ฌดํ•œ๋Œ€
  • Line Break ์—์„œ  Character Wrap์„ ์„ ํƒํ•˜๋ฉด ํ•œ ๊ธ€์ž์”ฉ ๋„˜์–ด๊ฐ€๊ณ  Word Wrap์„ ์„ ํƒํ•˜๋ฉด ํ•œ ๋‹จ์–ด์”ฉ ๋„˜์–ด๊ฐ
  • ๋งŽ์€ ํŒŒ์ผ๊ณผ ๋ฆฌ์†Œ์Šค๋“ค์„ ๋งํฌํ•˜๊ณ  ์ปดํŒŒ์ผํ•˜๋Š” ๊ณผ์ •์„ ํ†ตํ‹€์–ด์„œ '๋นŒ๋“œ'๋ผ๊ณ  ํ•œ๋‹ค.

ImageView

  • ImageView : ์ด๋ฏธ์ง€๋ฅผ ๋‚˜ํƒ€๋‚ด๊ธฐ ์œ„ํ•œ ํ•˜๋‚˜์˜ ์ฐฝํ‹€(๊ป๋ฐ๊ธฐ) ์—ญํ• 
  • ImageView๋งŒ ์˜ฌ๋ฆฌ๊ณ  Runํ•˜๋ฉด ์•„๋ฌด๊ฒƒ๋„ ๋‚˜ํƒ€๋‚˜์ง€ ์•Š๋Š”๋‹ค.
  • ์ด๋ฏธ์ง€๋ฅผ ๋„ฃ๋Š” ๋ฐฉ๋ฒ•? ๋ณดํ†ต Assets.xcassets ํด๋”(์•„์ด์ฝ˜, ์ด๋ฏธ์ง€, ๋ฆฌ์†Œ์Šค ๋“ฑ์„ ํ•˜๋‚˜๋กœ ๊ด€๋ฆฌํ•˜๋Š” ํŒŒ์ผ)์— ์ด๋ฏธ์ง€๋ฅผ ๋„ฃ๊ณ  ๊ฐ€์ ธ์™€์„œ ๋ณด์—ฌ์ค˜์•ผํ•œ๋‹ค. ์ด ํด๋”์— ์ด๋ฏธ์ง€๋ฅผ Drag & Drop ํ•ด์„œ ๋„ฃ์œผ๋ฉด ImageView - Image์—์„œ ํ•ญ๋ชฉ์ด ๋‚˜ํƒ€๋‚˜์„œ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ๋‹ค.

TextView

  • TextView : ํ…์ŠคํŠธ ๋ทฐ๋Š” ์—ฌ๋Ÿฌ ์ค„์˜ ํ…์ŠคํŠธ๋ฅผ ์˜์—ญ ์•ˆ์—์„œ ๋ณด์—ฌ์ฃผ๊ฑฐ๋‚˜ ์Šคํฌ๋กค๋กœ ๋ณด์—ฌ์ค€๋‹ค.
  • Behavior์—์„œ Editable์— ์ฒดํฌ → ํŽธ์ง‘ ๊ฐ€๋Šฅ, Selectable์— ์ฒดํฌ → ์„ ํƒ ๊ฐ€๋Šฅ
  • Keyboard Type์„ ๋ฐ”๊ฟ”์„œ ์ˆซ์ž๋งŒ ์˜ฌ๋ผ์˜ค๊ฒŒ ํ•  ์ˆ˜๋„ ์žˆ๋‹ค.
  • Scrolling ์„ค์ •์„ ์ฒดํฌ ํ•ด์ œํ•ด์„œ ์Šคํฌ๋กค๋„ ์กฐ์ ˆํ•  ์ˆ˜ ์žˆ๋‹ค.

 

LaunchScreen

  • LaunchScreen : ๋ฉ”์ธํ™”๋ฉด์ด ๋œจ๊ธฐ ์ „ ๋‚˜์˜ค๋Š” ํ™”๋ฉด์„ ๋งํ•œ๋‹ค. Main.storyboard ํ™”๋ฉด์ด ๋œจ๊ธฐ ์ „ ๋œจ๋Š” ํ™”๋ฉด.
  • LaunchScreen.storyboard์—์„œ ๋Ÿฐ์น˜์Šคํฌ๋ฆฐ์„ ๊พธ๋ฏผ๋‹ค.

 

EntryPoint

  • Main.storyboard๊ฐ€ ์‹คํ–‰์ด ๋˜๋ฉด์„œ ์–ด๋–ค ํ™”๋ฉด์ด ๋จผ์ € ๋ณด์—ฌ์งˆ์ง€ ์„ ํƒํ•˜๋Š” ๊ฒƒ์„ ๋งํ•œ๋‹ค.
  • EntryPoint๊ฐ€ ์‚ฌ๋ผ์กŒ๋‹ค๋ฉด? View Controller - Title ์•„๋ž˜ Is Initial View Controller์— ์ฒดํฌ

 

์•„์ด์ฝ˜ ์ด๋ฏธ์ง€ ์ž๋ฅด๊ธฐ ๋ฐ ๊ฒ€์ƒ‰ ๋ฐฉ๋ฒ•

  • google์—์„œ xcode icon์ด๋ผ๊ณ  ๊ฒ€์ƒ‰ํ•ด์„œ ๋ฐฉ๋ฒ• ์ฐพ์•„๋ณด๊ธฐ
  • Asset Catalog Creator ๋ฌด๋ฃŒ๋ฒ„์ „ ๋‹ค์šด๋กœ๋“œ
  • Apple developer - App Icon์—์„œ ์„ค๋ช… ์ฐธ์กฐ
 

App Icon - Icons and Images - iOS - Human Interface Guidelines - Apple Developer

App Icon Every app needs a beautiful and memorable icon that attracts attention in the App Store and stands out on the Home screen. Your icon is the first opportunity to communicate, at a glance, your app’s purpose. It also appears throughout the system,

developer.apple.com

 

'TIL' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[TIL] 220127  (0) 2022.01.27
[TIL] 220125  (0) 2022.01.25
[TIL] 220121  (0) 2022.01.21
[TIL] 220119  (0) 2022.01.19
[TIL] 220118  (0) 2022.01.18