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

Creating a Playground project

As you learned earlier, launch Xcode and click on Get started with a playground:

The Playground template screen will appear. Make sure that you select iOS and then choose Blank and hit Next. You will be asked to give your project a name and a location to save the file; name your new Playground iOS11-Programming-for-Beginners-Ch4. You can save the file anywhere you like. Now, with the project saved, we can explore Playgrounds a bit.

Next, delete everything inside your file and toggle on the Debug panel using the toggle button (command + shift + Y). You should now have a blank screen with the Results Panel on the right, and the Debug Panel opened at the bottom.

We focused on the basics earlier, and now we will build upon those skills. Ranges are one such data type that we should learn about. These are very useful and can come in handy for a variety of reasons. Let's take a look at what ranges are and then start to understand the difference between a closed range, a half-closed range, and a one-sided range.

主站蜘蛛池模板: 仁寿县| 治多县| 涡阳县| 炉霍县| 白银市| 新宾| 灵丘县| 乌鲁木齐市| 平阳县| 松原市| 迭部县| 宁都县| 乌什县| 海阳市| 武清区| 敦煌市| 旌德县| 亳州市| 金堂县| 彰化县| 穆棱市| 兴山县| 石林| 都匀市| 洛川县| 建平县| 平度市| 永顺县| 久治县| 贵南县| 汉阴县| 凤翔县| 宾阳县| 璧山县| 普定县| 资兴市| 大足县| 商河县| 五常市| 丰宁| 广宁县|