Xib ๋ก ์ปค์คํ ๋ทฐ๋ฅผ ๋ง๋ค์ด ๋ดค๋๋ฐ ์ก์ ๋ ์ฐ๊ฒฐํด๋ด ์๋ค! ๋ค์์ ๊ธ์ ์ฝ๊ณ ๋ณด์๋๊ฑธ ์ถ์ฒํด์! iOS) ์ปค์คํ ๋ทฐ Xib ์ฐ๊ฒฐํ๊ธฐ ๋ค์ํ ๋ฐฉ๋ฒ์ด ์๊ณ ๊ฐ๊ฐ ์ฅ๋จ์ ์ด ์๋ค๊ณ ์๊ฐํด์! 1. delegate pattern 2. NSNotification 3. ๋ทฐ ์ปจํธ๋กค๋ฌ์์ ์ปค์คํ ๋ทฐ ์์ ํธ์ถ ๐ CustomNavigationBar.swift ์ปค์คํ ๋ทฐ๋ ๋ค์๊ณผ ๊ฐ์ด ์์ฑํ์ด์!(Xib ์ฐ๊ฒฐ์ View ์ Custom Class ์ค์ ์ผ๋ก ํด์ค ์ํ์์!) import Foundation import UIKit class CustomNavigationBar: UIView { // MARK: - UBIoutlet Properties @IBOutlet weak var profileButton: UIButton! ..
๋๊ฐ์ง ๋ฐฉ๋ฒ์ ํตํด์ ์ปค์คํ ๋ทฐ ํด๋์ค๋ฅผ Xib ์ ์ฐ๊ฒฐํด์ ๋ง๋ค์ด๋ณด์! ๊ทธ๋ฆฌ๊ณ ์ข ๋ ๊ณ ๋ฏผํด๋ณผ ์ ๊น์ง ๊ฐ์ด ์์๋ด์! ๐งโ๏ธ ๋ฐฉ๋ฒ1 : File's Owner ์์ Custom Class ์ค์ File's Owner : File's Owner ๊ฐ์ฒด๋ฅผ ์ฌ์ฉํด์ nib ํ์ผ์ top-level ๊ฐ์ฒด๋ค์ ์ฐธ์กฐํ ์ ์๋๋ก ํ๋ค. ์ฐ๋ฆฌ๊ฐ IBAction, IBOutlet ์ ํด๋นํ๋ ๊ฒ์ ์ฐ๊ฒฐํ ์ ์๊ฒ ํด์ฃผ๋ ๊ฒ์ ์ด ์ฐธ์กฐ๊ฐ ๊ฐ๋ฅํ๊ธฐ ๋๋ฌธ์ด๋ค. ํด๋น ๋ทฐ๋ฅผ ๊ฐ์ ธ์ค๊ธฐ ์ํด์ UIView ํด๋์ค์์ nib ํํ๋ก ๊ฐ์ ธ์์ผ ํฉ๋๋ค. ์ด๋! ๋๊ฐ์ง ๋ฐฉ๋ฒ์ผ๋ก ๊ฐ์ ธ์ฌ ์ ์์ด์! // CustomNavigationBar.siwft // ์ญํ : ์ปค์คํ ๋ค๋น๊ฒ์ด์ ๋ฐ class CustomNavig..
- WidgetKit
- YPImagePicker
- UserDefaults
- Algorithm
- Objective-C
- Notification
- Widget
- projectsetting
- containerBackground
- ์๋ฒํต์
- Protocol
- CloneCoding
- Swift
- MOYA
- Firebase
- RxCocoa
- WWDC22
- configurable widget
- rxswift
- async/await
- watchOS
- OpenSourceLibrary
- SwiftUI
- APNS
- IOS
- github
- WWDC
- MVVM
- 2022 KAKAO TECH INTERNSHIP
- urlsession
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- Total
- Today
- Yesterday