I wanted to know if it's possible to load the text in a label from a URL.
I was going to try and use NSURL to pull in a .txt file stored online.
Would anyone know how to implement this with swift?
Thanks
Yes it's possible. Yes, I know how to do it. However, you haven't exerted any effort whatsoever to solve your problem yourself.
Search on NSURLConnection. Unless you need https or login, you could use the class method sendAsynchronousRequest:queue:completionHandler:
, which is very easy to use. You should be able to find examples of using it on the net.
You could also use a library like Alamofire. That makes it even easier.
If you don't want to use sessions, you can also use the simpler NSURLConnection Class, something like this: