본문 바로가기

분류 전체보기

(162)
Instance Method: dataTask(with:completionHandler:) Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion. Declaration func dataTask(with url: URL, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask The dataTask method passed back 3 values, all of which are optional - Data?, URLResponse?, and Error?. developer.apple.com/documentation/foundation/urlsession/14103..
Structure: URLComponents A structure that parses URLs into and constructs URLs from their constituent parts. Declaration struct URLComponents Overview This structure parses and constructs URLs according to RFC 3986. Its behavior differs subtly from that of the URL structure, which conforms to older RFCs. However, you can easily obtain a URL value based on the contents of a URLComponents value or vice versa. developer.ap..
Structure: URL A value that identifies the location of a resource, such as an item on a remote server or the path to a local file. Declaration struct URL Overview You can construct URLs and access their parts. For URLs that represent local files, you can also manipulate properties of those files directly, such as changing the file’s last modification date. Finally, you can pass URLs to other APIs to retrieve t..
Preventing Insecure Network Connections Enforce secure network links in your app by relying on App Transport Security. Framework Security On This Page Overview Topics See Also Overview On Apple platforms, a networking security feature called App Transport Security (ATS) improves privacy and data integrity for all apps and app extensions. It does this by requiring that network connections made by your app are secured by the Transport L..
What is URL? With Hypertext and HTTP, URL is one of the key concepts of the Web. It is the mechanism used by browsers to retrieve any published resource on the web. URL stands for Uniform Resource Locator. A URL is nothing more than the address of a given unique resource on the Web. In theory, each valid URL points to a unique resource. Such resources can be an HTML page, a CSS document, an image, etc. In pr..
NSError & CocoaError Information about an error condition including a domain, a domain-specific error code, and application-specific information. Declaration class NSError : NSObject Overview Objective-C methods can signal an error condition by returning an NSError object by reference, which provides additional information about the kind of error and any underlying cause, if one can be determined. An NSError object ..
Error Declaration protocol Error Overview Any type that declares conformance to the Error protocol can be used to represent an error in Swift’s error handling system. Because the Error protocol has no requirements of its own, you can declare conformance on any custom type you create. Describing an Error var localizedDescription: String Retrieve the localized description for this error. developer.apple..
Protocols A protocol defines a blueprint of methods, properties, and other requirements that suit a particular task or piece of functionality. The protocol can then be adopted by a class, structure, or enumeration to provide an actual implementation of those requirements. Any type that satisfies the requirements of a protocol is said to conform to that protocol. In addition to specifying requirements that..
When to Use Inheritance Inheritance is a useful programming concept, but it is easy to use inappropriately. Often interfaces do the job better. This topic and When to Use Interfaces help you understand when each approach should be used. Inheritance is a good choice when: Your inheritance hierarchy represents an "is-a" relationship and not a "has-a" relationship. You can reuse code from the base classes. You need to app..
(2020.08-11) 3달간의 개발 일기 중간 점검 © benkolde, 출처 Unsplash 아직은 가야 할 길이 멀지만, 훗날 어떻게 먼 길을 왔는지 스스로 돌아볼 수 있게 기록을 남기고자 한다. 2015년 해외취업을 하기 전부터 목표를 이루기까지 기록을 남긴 과정이 다른 분들에게 도움이 됐듯이, 이 글도 그렇기를?!!​퇴사 고민을 한 5월부터 하다가 7월에 사표를 냈고 싱가포르를 떠났다. 고민을 한 2달 동안 한 일(?)이라면 1. 내가 이렇게 힘들고 지치는데도 싱가포르에 남아있을 메리트가 무엇이 있는가?라는 고민이었다. 고민을 반박할 답을 찾지 못해서 결국 떠났다. 2. 퇴사를 하고 무엇을 할 것인가?​그 고민에 대한 답은 잠정적으로 ‘개발자로 커리어를 전환하는 것’이었다. (나중에 따로 이것만 정리도 하겠지만, 여러 가지 배경과 이유가 있다) ​..