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

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.

主站蜘蛛池模板: 辽中县| 静海县| 凭祥市| 永仁县| 开化县| 镇远县| 红原县| 萝北县| 英德市| 佛坪县| 屏东县| 大石桥市| 博白县| 合江县| 涞水县| 涟水县| 贵港市| 南部县| 会东县| 保亭| 阿图什市| 九江县| 义乌市| 乌拉特后旗| 赤壁市| 肇源县| 台东县| 东方市| 东阳市| 镇安县| 修武县| 邯郸县| 措美县| 兴山县| 定南县| 抚宁县| 措勤县| 晋中市| 年辖:市辖区| 蒙阴县| 庐江县|