官术网_书友最值得收藏!

The Swift programming language

Swift is a programming language introduced by Apple, which you can use to create apps for the most common Apple devices, including the iPhone. The language and device you choose defines the possibilities for your program, for example, using Swift and targeting an iPhone as your device, you will be able to access the camera of the iPhone to take photos in your application, or the speaker of the iPhone in order to play sounds in your application. If you choose JavaScript as your programming language, HTML as your markup language and target the browser on your computer as your device, then you will be able to create interactive web pages. A programming language can differ much from language to language, and although the languages can share common concepts, it does not mean that one will master every programming language just by learning one. This leads to what programming is: it is the act of creating a program or recipe for your device to run. What is the result? The result is your program, your application, or your game.

Let's imagine this simple application for an iPhone-Movie Night, which has a list of your favorite movies. If the list is longer than the height of your device, you are able to scroll through the list by swiping up and down. You can add movies to your list by tapping a button and entering a name for the movie and you can delete them again by swiping left on the movie in the list. The idea of the app is to keep a list of your favorite movies so that you can remember them when having a movie night. In this case, the program is the application (called Movie Night), the device is the iPhone, and the instructions of the application could be the colors of the background and texts, the list in which you can scroll, and the add and delete functionalities. Programming is about creating these set of instructions so that we are able run our application on our iPhone. If you're excited about creating your own Movie Night app that you can use with your friends, then read along as this is an application we will build together in Chapter 14, Movie Night - iOS App.

主站蜘蛛池模板: 石屏县| 鹰潭市| 凤庆县| 湟源县| 措勤县| 沾化县| 庐江县| 铁岭市| 凉城县| 建昌县| 广安市| 谷城县| 太仓市| 玉门市| 水城县| 阿城市| 清水河县| 乌恰县| 巨野县| 云安县| 浦北县| 碌曲县| 孟村| 乌拉特前旗| 丹凤县| 呼伦贝尔市| 云梦县| 修文县| 阿瓦提县| 大宁县| 宁阳县| 修水县| 竹溪县| 叙永县| 双柏县| 金溪县| 武隆县| 县级市| 密云县| 遂平县| 江永县|