- 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.
推薦閱讀
- Modern JavaScript Web Development Cookbook
- SOA用戶指南
- 物聯(lián)網(wǎng)識別技術(shù)
- 物聯(lián)網(wǎng)安全與深度學(xué)習(xí)技術(shù)
- 計算機網(wǎng)絡(luò)與通信(第2版)
- Yii Application Development Cookbook(Second Edition)
- 大型企業(yè)微服務(wù)架構(gòu)實踐與運營
- 深入理解Nginx:模塊開發(fā)與架構(gòu)解析
- 組網(wǎng)技術(shù)與網(wǎng)絡(luò)管理
- bash網(wǎng)絡(luò)安全運維
- Intelligent Mobile Projects with TensorFlow
- Python API Development Fundamentals
- Corona SDK Application Design
- 新IP:面向泛在全場景的未來數(shù)據(jù)網(wǎng)絡(luò)
- 通信系統(tǒng)實戰(zhàn)筆記:無處不在的信號處理