Skip to content

Commit

Permalink
add 19th link study
Browse files Browse the repository at this point in the history
  • Loading branch information
iJoom committed Jun 12, 2020
1 parent a5b412a commit a55615d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 19์ฐจ ์Šคํ„ฐ๋””.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,13 @@ guard let imageURL = URL(string: self.soldiers[indexPath.row].soldierprofile) el
<img width="248" alt="์Šคํฌ๋ฆฐ์ƒท 2020-06-12 ์˜คํ›„ 1 29 10" src="https://user-images.githubusercontent.com/55793344/84464937-c5bde700-acb0-11ea-8935-5c29860d7a5c.png">

* Codegen -> Manual/None ์œผ๋กœ ํ•„์ˆ˜๋กœ ๋ฐ”๊ฟ”์ค˜์•ผํ•จ , ์„œ๋ธŒํด๋ž˜์Šค๊ฐ€ ๋‚จ์•„ ์žˆ์–ด์„œ ๋ˆˆ์— ๋ณด์ด์ง€ ์•Š๋Š” ์—๋Ÿฌ์™€ ์ถฉ๋Œ ๋ฐœ์ƒ

* CoreData Model์— ์›ํ•˜๋Š” id, Devices ๋“ฑ ๋ฐ์ดํ„ฐ์˜ ๋ชจ๋ธ ์ƒ์„ฑ String, int64 ๋“ฑ๋“ฑ

1. Codegen: ํ•ด๋‹น entity์— ๋Œ€ํ•œ ํด๋ž˜์Šค ์„ ์–ธ์„ ์ž๋™์œผ๋กœ ๋งŒ๋“ค์–ด ์ฃผ๋Š” ์˜ต์…˜์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.
- None/Manual: ๊ด€๋ จ ํŒŒ์ผ์„ ์ž๋™์œผ๋กœ ๋งŒ๋“ค์–ด์ฃผ์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ๊ฐœ๋ฐœ์ž๋Š” DataModel์„ ์„ ํƒํ•œ ์ƒํƒœ์—์„œ Editor-Create NSManagedObject Subclass ํ•ญ๋ชฉ์„ ํด๋ฆญํ•˜์—ฌ ํด๋ž˜์Šค ์„ ์–ธ ํŒŒ์ผ๊ณผ ํ”„๋กœํผํ‹ฐ extension ํŒŒ์ผ์„ ๋นŒ๋“œ์‹œ๋งˆ๋‹ค ์ถ”๊ฐ€์‹œ์ผœ ์ฃผ๊ณ , ์ด๋ฅผ ์ˆ˜๋™์œผ๋กœ ๊ด€๋ฆฌํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
- Class Definition: ํด๋ž˜์Šค ์„ ์–ธ ํŒŒ์ผ๊ณผ ํ”„๋กœํผํ‹ฐ ๊ด€๋ จ extension ํŒŒ์ผ์„ ๋นŒ๋“œ์‹œ๋งˆ๋‹ค ์ž๋™์œผ๋กœ ์ถ”๊ฐ€์‹œ์ผœ์ค๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ ๊ด€๋ จ๋œ ํŒŒ์ผ์„ ์ „ํ˜€ ์ถ”๊ฐ€์‹œ์ผœ์ค„ ํ•„์š”๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.(๊ทธ๋ž˜์„œ๋„ ์•ˆ๋ฉ๋‹ˆ๋‹ค. ๋งŒ์•ฝ ์ˆ˜๋™์œผ๋กœ ์ถ”๊ฐ€์‹œ์ผœ์ค€ ์ƒํƒœ์—์„œ ๋นŒ๋“œ๋ฅผ ์‹œ๋„ํ•˜๋ฉด ์ปดํŒŒ์ผ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.)
- Category/Extension: ํ”„๋กœํผํ‹ฐ ๊ด€๋ จ extensionํŒŒ์ผ๋งŒ ์ž๋™์œผ๋กœ ์ถ”๊ฐ€์‹œ์ผœ ์ค๋‹ˆ๋‹ค. ์ฆ‰, ํด๋ž˜์Šค ์„ ์–ธ์—๋Š” ์‚ฌ์šฉ์ž๊ฐ€ ์›ํ•˜๋Š” ๋กœ์ง์„ ์ž์œ ๋กญ๊ฒŒ ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

***

#### CoreData์‚ฌ์šฉ์„ ์œ„ํ•œ ํ•ต์‹ฌ!! AppDelegate์— ํ•ด๋‹น ์ฝ”๋“œ ์ถ”๊ฐ€!! [์•ˆํ•˜๋ฉด ์ž‘๋™ ๋ถˆ๊ฐ€]
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,10 @@

### 18์ฐจ ์Šคํ„ฐ๋””
* [CollectionView pagingํšจ๊ณผ ๋ฐ ์…€ ์ปค์Šคํ…€(xib) ๋ฐ PageController์‚ฌ์šฉ๊ธฐ](https://github.com/iOS-SOPT-iNNovation/iJoom/blob/master/18์ฐจ%20์Šคํ„ฐ๋””.md)


***


### 19์ฐจ ์Šคํ„ฐ๋””
* [ํ†ต์‹ Data CollectionViewCell image์ฒ˜๋ฆฌ + CoreData ํ†บ์•„๋ณด๊ธฐ](https://github.com/iOS-SOPT-iNNovation/iJoom/blob/master/19์ฐจ%20์Šคํ„ฐ๋””.md)

0 comments on commit a55615d

Please sign in to comment.