GCD (Grand Central Patch) : GCCD procides and manages FIFO queues to which your application can submit tasks in the form of block objects. Work submitted to dispatch queues are executed on a pool of threads fully managed by the system. No guarantee is made as to the thread on which a task executes. - Apple document => 해야 할 일들(코드블럭)을 GCD에 넘기면, 시스템이 알아서 쓰레드를 할당하여 안전하게 처리해준다. Dispatch queue 에는 3가지 ..
Networking in iOS? : 보통 HTTP방법으로 REST API를 이용해서 JSON데이터를 주고받는다. HTTP : HyperText Transfer Protocol -> 앱(클라이언트)과 서버가 document 데이터를 주고받기 위해 정한 프로토콜(통신규약) 동작 : request & Response HTTP Request Method 1. POST : Create 2. GET : Read 3. UPDATE : Update 4. DELETE : Delete URL : Uniform Resource Locator -> request 주소 요청과 응답은 Request Headers & Body Response Headers & Body 형태로 보내고, 받아온다. content-Type : 응답을..