일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- uiscrollview
- clean architecture
- Protocol
- Xcode
- 애니메이션
- tableView
- SWIFT
- Human interface guide
- Refactoring
- 리펙토링
- HIG
- UITextView
- UICollectionView
- rxswift
- ribs
- 스위프트
- MVVM
- collectionview
- map
- 리펙터링
- Clean Code
- uitableview
- 리팩토링
- 클린 코드
- ios
- swift documentation
- combine
- Observable
- RxCocoa
- swiftUI
- Today
- Total
목록URI (2)
김종권의 iOS 앱 개발 알아가기
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/dwOYNO/btrfb0dDpaa/WK6zB25rpQCTj5k9BGEUu1/img.png)
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..