일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- RxCocoa
- 클린 코드
- swift documentation
- ios
- uiscrollview
- rxswift
- collectionview
- ribs
- Observable
- Xcode
- Refactoring
- SWIFT
- swiftUI
- clean architecture
- UITextView
- 리펙토링
- uitableview
- HIG
- 리팩토링
- 스위프트
- UICollectionView
- Clean Code
- combine
- 애니메이션
- Human interface guide
- tableView
- map
- 리펙터링
- Protocol
- MVVM
- Today
- Total
목록URI (2)
김종권의 iOS 앱 개발 알아가기
URI vs URL 개념 URI(Uniform Resource Identifier): 특정 리소스 식별자 URL(Uniform Resource Location): 특정 리소스 위치 URI 방법 중 하나가 URL 위 그림에서 1번은 특정 리소스의 식별자 자체를 의미하므로 URI, 2번은 파일의 위치를 가리키므로 URL swift에서 URL을 사용하는 예 이때 리소스가 HTML인 경우 - URLSession let defaultSession = URLSession(configuration: .default) guard let url = URL(string: "\(resource)") else { print("URL is nil") return } // Request let request = URLReques..
URL에 parameter 삽입 (query string) "https://domainABC" 를 "https://domainABC?memberID=1234"로 변경 let url = "https://domainABC" var components = URLComponents(string: url) let id = URLQueryItem(name: "memberID", value: "1234") components?.queryItems = [id] guard let newURL = components?.url else { return } print(newURL) // Optional(https://domainABC?memberID=1234) URL의 parameter 파싱 (query string) "ht..