- 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.
推薦閱讀
- Aptana Studio Beginner's Guide
- 智能網(wǎng)聯(lián)汽車(chē)V2X與智能網(wǎng)聯(lián)設(shè)施I2X
- Django 2 by Example
- Oracle SOA Suite 11g Performance Tuning Cookbook
- 物聯(lián)網(wǎng)信息安全
- 計(jì)算機(jī)網(wǎng)絡(luò)與數(shù)據(jù)通信
- 智慧城市中的移動(dòng)互聯(lián)網(wǎng)技術(shù)
- 無(wú)人機(jī)通信
- 通信簡(jiǎn)史:從信鴿到6G+
- Getting Started with WebRTC
- 雷達(dá)饋線技術(shù)
- 通信原理及MATLAB/Simulink仿真
- Windows Server 2012 Hyper-V虛擬化管理實(shí)踐
- 區(qū)塊鏈技術(shù)與應(yīng)用:打造分布式商業(yè)新生態(tài)
- 中國(guó)信息化年鑒2017