- iOS 12 Programming for Beginners
- Craig Clayton
- 151字
- 2021-07-02 15:04:54
Building on the Swift Foundation
In the last chapter, we went through the basics of understanding data types and how to create variables and constants. Now that we are comfortable with those topics, let's look at adding more building blocks. This chapter will build on what we learned in the previous chapter and get us a bit closer to understanding Swift better.
The following topics will be covered in this chapter:
- Type safety and type inference
- Operations with integers
- if statements
- Optionals and optional bindings
- Functions
Data types are good, but we will need to add some logic to our app. For example, we want to be able to control whether someone should see a login screen when they launch the app, or whether they should go right into the app. You will use logic a lot, so let's look at what an if statement is and how to use it.
推薦閱讀
- 物聯(lián)網(wǎng)安全(原書第2版)
- 物聯(lián)網(wǎng)識別技術(shù)
- 5G承載網(wǎng)網(wǎng)絡(luò)規(guī)劃與組網(wǎng)設(shè)計
- Proxmox High Availability
- 智慧城市中的移動互聯(lián)網(wǎng)技術(shù)
- 局域網(wǎng)組建、管理與維護項目教程(Windows Server 2003)
- 互聯(lián)網(wǎng)基礎(chǔ)資源技術(shù)與應(yīng)用發(fā)展態(tài)勢(2021—2023)
- 網(wǎng)絡(luò)環(huán)境中基于用戶視角的信息質(zhì)量評價研究
- 語音信號處理及Blackfin DSP實現(xiàn)
- 網(wǎng)絡(luò)AI+:2030后的未來網(wǎng)絡(luò)
- 局域網(wǎng)組成實踐
- TCP/IP基礎(chǔ)(第2版)
- 圖解物聯(lián)網(wǎng)
- 小型局域網(wǎng)組建
- Microservices Development Cookbook