O'Reilly logo

Learning Swift™ Programming by Jacob Schatz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Bits and Bytes in Real Life

In this section, you are going to pull in a file and read its bits and bytes. You should be able to decode the file according to the specifications. Let’s see what you can do with it. If you are using a Mac, then you already have Python installed, which means you can simply start a local webserver without installing anything. You are going to host a GIF file and read it in. You can use any GIF you want, but I have prepared one for you at http://i.imgur.com/j74SykU.gif.

To start up a new single-view application, follow these steps:

1. Select File > New > Project.

2. Make sure IOS > Application is selected and click on Single View Application.

3. Set Product Name to GIFReader and make sure language is set to Swift. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required