Hi there to apple community.
I am trying to download a csv file from a website to present the data in my app.but when I use the download task I don't know what to do with the response (it is a csv file)
let task = URLSession.shared.downloadTask(with: URL(string: "https://example.csv")!)
{ (url, response, error) in
if error == nil
{
}
else
{
print(error?.localizedDescription)
}
}
task.resume()
what should I do with the response to get a parseable csv from this?
should I use another task?
the url is the download link of the file.
Thanks a lot for your help
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi There to apple community.
I want to know how to make the tabbar image fit to the tabbar.
I use this code to set the image:
swift
vc.tabBarItem.image = UIImage(named: "myimage")
but the image fill all over the screen.
And when I use systemimages I don't have this problem.
thanks for your help
hi there to apple community.
I want to know is it possible to create a lunchscreen in swift programmatically?
If yes, How?
Hi there to apple community.
My question is how can I create an online app that tracks crypto currency prices in swift.
Where should I start and what should I learn?
(I know swift)
thanks a lot for your help.
Hit there I want to create an app that downloads and lists musics from internet with it download link where should I start?
(I know swift and Xcode)
thanks a lot for your help.