Tôi muốn hiển thị dữ liệu từ URL này: http://www.football-data.org/soccerseasons/351/fixtures?timeFrame=n14
Làm thế nào để thêm một cái gì đó giống như id = 1 để một NSMutableURLRequest
baseurl tôi là let baseUrl = NSURL(string: "http://www.football-data.org")!
,
có yêu cầu của tôi là let request = NSMutableURLRequest(URL: baseUrl.URLByAppendingPathComponent("soccerseasons/" + "\(league.id)" + "/fixtures?timeFrame=n14"))
Nhưng ?timeFrame=n14
không hoạt động.
Bất kỳ ai biết cách giải quyết vấn đề này để tôi có thể hiển thị dữ liệu đó?
Vâng, đó là câu trả lời. Cảm ơn nhiều! – STheFox
Cảm ơn Martin, điều này thật tuyệt –