Skip to content

NeverDie-iOS/iOS-CodeVault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 

Repository files navigation

๐Ÿ“šiOS-CodeVault

This is a space where I can freely jot down notes.


๐Ÿ“’ํ”„๋กœํผํ‹ฐ(Property)

  • ์ €์žฅ ํ”„๋กœํผํ‹ฐ(Stored Property)
    • ๊ฐ’์„ ์ €์žฅํ•˜๊ธฐ ์œ„ํ•ด ์„ ์–ธ๋˜๋Š” ์ƒ์ˆ˜/๋ณ€์ˆ˜
    • ํด๋ž˜์Šค, ๊ตฌ์กฐ์ฒด์—์„œ ์‚ฌ์šฉ
  • ์—ฐ์‚ฐ ํ”„๋กœํผํ‹ฐ(Computed Property)
  • ํƒ€์ž… ํ”„๋กœํผํ‹ฐ(Type Property)

๐Ÿ“’์ดˆ๊ธฐํ™”(Initializers)

  • ์ €์žฅ ์†์„ฑ(

๐Ÿ“’TableView

โ—๏ธUITableViewDelegate ํ”„๋กœํ† ์ฝœ ์ฃผ์š” ๋ฉ”์„œ๋“œ

๐Ÿ” ์ง€์ •๋œ ํ–‰์ด ์„ ํƒ๋˜์—ˆ์Œ์„ ์•Œ๋ฆฌ๋Š” ๋ฉ”์„œ๋“œ
func tableView(UITableView, didSelectRowAt: IndexPath)

๐Ÿ” ์ง€์ •๋œ ํ–‰์˜ ์„ ํƒ์ด ํ•ด์ œ๋˜์—ˆ์Œ์„ ์•Œ๋ฆฌ๋Š” ๋ฉ”์„œ๋“œ
func tableView(UITableView, didDeselectRowAt: IndexPath)

๐Ÿ” ํŠน์ • ์œ„์น˜ ํ–‰์˜ ๋†’์ด๋ฅผ ๋ฌป๋Š” ๋ฉ”์„œ๋“œ
func tableView(UITableView, heightForRowAt: IndexPath)

๐Ÿ” ํŠน์ • ์œ„์น˜ ํ–‰์˜ ๋“ค์—ฌ์“ฐ๊ธฐ ์ˆ˜์ค€์„ ๋ฌป๋Š” ๋ฉ”์„œ๋“œ
func tableView(UITableView, indentationLevelForRowAt: IndexPath)

๐Ÿ” ํŠน์ • ์„น์…˜์˜ ํ—ค๋”๋ทฐ ๋˜๋Š” ํ‘ธํ„ฐ๋ทฐ๋ฅผ ์š”์ฒญํ•˜๋Š” ๋ฉ”์„œ๋“œ
func tableView(UITableView, viewForHeaderInSection: Int)
func tableView(UITableView, viewForFooterInSection: Int)

๐Ÿ” ํŠน์ • ์„น์…˜์˜ ํ—ค๋”๋ทฐ ๋˜๋Š” ํ‘ธํ„ฐ๋ทฐ์˜ ๋†’์ด๋ฅผ ๋ฌผ์–ด๋ณด๋Š” ๋ฉ”์„œ๋“œ
func tableView(UITableView, heightForHeaderInSection: Int)
func tableView(UITableView, heightForFooterInSection: Int)

๐Ÿ” ํ…Œ์ด๋ธ”๋ทฐ๊ฐ€ ํŽธ์ง‘๋ชจ๋“œ์— ๋“ค์–ด๊ฐ”์Œ์„ ์•Œ๋ฆฌ๋Š” ๋ฉ”์„œ๋“œ
func tableView(UITableView, willBeginEditingRowAt: IndexPath)

๐Ÿ” ํ…Œ์ด๋ธ”๋ทฐ๊ฐ€ ํŽธ์ง‘๋ชจ๋“œ์—์„œ ๋น ์ ธ๋‚˜์™”์Œ์„ ์•Œ๋ฆฌ๋Š” ๋ฉ”์„œ๋“œ
func tableView(UITableView, didEndEditingRowAt: IndexPath?)



โ—๏ธUITableViewDataSource ํ”„๋กœํ† ์ฝœ ์ฃผ์š” ๋ฉ”์„œ๋“œ (๐ŸŒŸ => required)

๐ŸŒŸ ํŠน์ • ์œ„์น˜์— ํ‘œ์‹œํ•  ์…€์„ ์š”์ฒญํ•˜๋Š” ๋ฉ”์„œ๋“œ -> Int
func tableView(UITableView, cellForRowAt: IndexPath)

๐ŸŒŸ ๊ฐ ์„น์…˜์— ํ‘œ์‹œํ•  ํ–‰์˜ ๊ฐœ์ˆ˜๋ฅผ ๋ฌป๋Š” ๋ฉ”์„œ๋“œ
func tableView(UITableView, numberOfRowsInSection: Int) -> UITableViewCell

๐Ÿฃ ํ…Œ์ด๋ธ”๋ทฐ์˜ ์ด ์„น์…˜ ๊ฐœ์ˆ˜๋ฅผ ๋ฌป๋Š” ๋ฉ”์„œ๋“œ
func numberOfSections(in: UITableView)

๐Ÿฃ ํŠน์ • ์„น์…˜์˜ ํ—ค๋” ํ˜น์€ ํ‘ธํ„ฐ ํƒ€์ดํ‹€์„ ๋ฌป๋Š” ๋ฉ”์„œ๋“œ
func tableView(UITableView, titleForHeaderInSection: Int) func tableView(UITableView, titleForFooterInSection: Int)

๐Ÿฃ ํŠน์ • ์œ„์น˜์˜ ํ–‰์„ ์‚ญ์ œ ๋˜๋Š” ์ถ”๊ฐ€ ์š”์ฒญํ•˜๋Š” ๋ฉ”์„œ๋“œ
func tableView(UITableView, commit: UITableViewCellEditingStyle, forRowAt: IndexPath)

๐Ÿฃ ํŠน์ • ์œ„์น˜์˜ ํ–‰์ด ํŽธ์ง‘ ๊ฐ€๋Šฅํ•œ์ง€ ๋ฌป๋Š” ๋ฉ”์„œ๋“œ
func tableView(UITableView, canEditRowAt: IndexPath)

๐Ÿฃ ํŠน์ • ์œ„์น˜์˜ ํ–‰์„ ์žฌ์ •๋ ฌ ํ•  ์ˆ˜ ์žˆ๋Š”์ง€ ๋ฌป๋Š” ๋ฉ”์„œ๋“œ
func tableView(UITableView, canMoveRowAt: IndexPath)

๐Ÿฃ ํŠน์ • ์œ„์น˜์˜ ํ–‰์„ ๋‹ค๋ฅธ ์œ„์น˜๋กœ ์˜ฎ๊ธฐ๋Š” ๋ฉ”์„œ๋“œ
func tableView(UITableView, moveRowAt: IndexPath, to: IndexPath)


๐Ÿ“’์œ„์น˜ ๊ถŒํ•œ

Privacy - Location When In Use Usage Description (iOS 11 ์ด์ƒ)

โ†’ ์•ฑ์ด ํฌ๊ทธ๋ผ์šด๋“œ์—์„œ ์‹คํ–‰ ์ค‘์ผ ๋•Œ๋งŒ ์œ„์น˜ ์ •๋ณด์— ์—‘์„ธ์Šค

Privacy - Location Always and When In Use Usage Description (iOS 11 ์ด์ƒ)

โ†’ ์•ฑ์ด ๋ฐฑ๊ทธ๋ผ์šด๋“œ์—์„œ ์‹คํ–‰๋˜๋Š” ๋™์•ˆ ์œ„์น˜ ์ •๋ณด์— ์—‘์„ธ์Šค

Privacy - Location Always Usage Description (iOS 11 ์ด์ „, deprecated)

โ†’ ์•ฑ์ด ๋ฐฑ๊ทธ๋ผ์šด๋“œ์—์„œ ์œ„์น˜ ์ •๋ณด์— ์—‘์„ธ์Šค ํ•˜๊ณ , iOS 11์ด์ „์˜ ๋Œ€์ƒ์— ๋ฐฐํฌํ•˜๋Š” ๊ฒฝ์šฐ!

Privacy - Location Temporary Usage Description Dictionary

โ†’ ์•ฑ์˜ ํ•œ ๋ถ€๋ถ„์—์„œ ์‚ฌ์šฉ์ž ์œ„์น˜์— ๋Œ€ํ•œ ์ž„์‹œ ์—‘์„ธ์Šค๋ฅผ ์š”์ฒญํ•˜๋Š” ์ด์œ ๋ฅผ ์„ค๋ช…

Privacy - Location Usage Description(mac)

โ†’ macOS ์•ฑ์ด ์‚ฌ์šฉ์ž์˜ ์œ„์น˜ ์ •๋ณด์— ์—‘์„ธ์Šคํ•˜๋Š” API๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ์—๋งŒ ํ•„์š”

Privacy - Location Default Accuracy Reduced (iOS 14 ์ด์ƒ)โ€ผ๏ธ

true: ๊ธฐ๋ณธ์ ์œผ๋กœ, ์ •ํ™•๋„๊ฐ€ ๋–จ์–ด์ง€๋Š”์ง€ ๋ฌป๋Š” ๋ฉ”์„ธ์ง€๊ฐ€ ํ‘œ์‹œ๋˜๋„๋ก ํ‚ค ๊ฐ’ ์„ค์ • โ†’ ์‚ฌ์šฉ์ž ์„ ํƒ X. ๋Œ€๋žต์ ์ธ ์œ„์น˜๋งŒ์„ ์ œ๊ณต โ†’ only reducedAccuracy

false: ์ „์ฒด ์œ„์น˜ ์ •ํ™•๋„๋ฅผ ๋ฌป๋Š” ๋ฉ”์‹œ์ง€๊ฐ€ ํ‘œ์‹œ๋˜๋„๋ก ์„ค์ •(default) โ†’ ๊ตฌ์ฒด์ ์ธ ์œ„์น˜๋ฅผ ์ œ๊ณตํ• ์ง€,ํ•˜์ง€ ์•Š์„์ง€์— ๋Œ€ํ•ด์„œ ์‚ฌ์šฉ์ž๊ฐ€ ์„ ํƒ ๊ฐ€๋Šฅ โ†’ fullAccuracy and reducedAccuracy

image


Source

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published