my review point is 10/10
https://youtu.be/tt67VikEovY?t=12m10s for loop 대신 map을 이용하는 방법
https://youtu.be/tt67VikEovY?t=8m50s swiftyjson의 json obj이용 예시
seen from Argentina

seen from United States
seen from China
seen from Spain
seen from China
seen from South Korea
seen from United Kingdom
seen from Australia
seen from United States
seen from United States
seen from Belgium

seen from United States

seen from Türkiye
seen from Colombia

seen from Australia
seen from China
seen from Türkiye
seen from United States
seen from United States
seen from United States
my review point is 10/10
https://youtu.be/tt67VikEovY?t=12m10s for loop 대신 map을 이용하는 방법
https://youtu.be/tt67VikEovY?t=8m50s swiftyjson의 json obj이용 예시
my review is 10/10
SwiftyJSON 과 TRON를 이용한 http 통신 작업을 설명한다.
트위터 api를 통해 json data를 가져오고 이를 이용하는 작업
https://youtu.be/Ds0AgchWlDE?t=2m4s pod를 이용한 3rd library설치
https://youtu.be/Ds0AgchWlDE?t=5m30s tron 사용
Just finished my first #iOS11 app using #Alamofire, #Firebase, #SwiftyJSON. Now I can manage my @Udemy sales discounts schedule from iPhone! Will provide special app for everybody soon!
Swift - Using Alamofire & SwiftyJSON
Simple example of using Alamofire & SwiftyJSON together:
import UIKit import SwiftyJSON import Alamofire import XCPlayground XCPSetExecutionShouldContinueIndefinitely() Alamofire.request(.GET, "http://jsonplaceholder.typicode.com/users") .responseJSON { request, response, payload, error in println(request) println(response) println(error) println(payload) let data = JSON(payload!) let userArray = data.arrayValue for user in userArray { println(user["username"].stringValue) } }
SwiftyJSON and HTTP POST
Here's an incredibly simple example of how to HTTP POST using SwiftyJSON in Xcode:
var jsonerror:NSError? var postData = ["firstname": "bob", "lastname": "fossil"] var jsonData = JSON(postData) var post:NSData = jsonData.rawData()!; var postLength:NSString = String(post.length) var url:NSURL = NSURL(string: "https://some.server.com/mobile.php")! var request:NSMutableURLRequest = NSMutableURLRequest(URL: url) request.HTTPMethod = "POST" request.HTTPBody = post request.setValue(postLength, forHTTPHeaderField: "Content-Length") request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type") request.setValue("application/json", forHTTPHeaderField: "Accept") if let data = NSURLConnection.sendSynchronousRequest(request, returningResponse: nil, error: nil) { println(data) }
postData is just a swift dictionary collection. The next line converts it to a JSON structure then the line after that does the magic, it returns NSData which is the type required by request.HTTPBody.