Author: admin
-
C# 11 Conditional Control Flow
The cornerstone of any software code is the control flow logic which decides which code should be executed and which should not. In this chapter, we cover the conditional control flow constructs provided by C#. Looping vs. conditional control flow Regardless of the programming language used, application development is essentially an exercise in applying logic.…
-
Interface Builder Live Views and iOS 17 Embedded Frameworks
Two related areas of iOS development will be covered in this chapter in the form of Live Views in Interface Builder and Embedded Frameworks, both designed to make the tasks of sharing common code between projects and designing dynamic user interfaces easier. Embedded Frameworks Apple defines a framework as “a collection of code and resources…
-
C# 11 Operators and Expressions
This chapter covers using operators to create expressions when programming in C#, including arithmetic and assignment operators. Other topics covered include operator precedence, logical operators, and the ternary operator. In the previous chapters, we used variables and constants in C# and described the different variable and constant types. However, being able to create constants and…
-
Drawing iOS 2D Graphics with Core Graphics
The ability to draw two-dimensional graphics on the iPhone and iPad is provided as part of the Core Graphics Framework in the form of the Quartz 2D API. The iOS implementation of Quartz on iOS is the same as that provided with macOS. It provides a graphics context object together with a set of methods…
-
C# 11 Type Casting
C# code works with many types, both those provided by the language and many you will create yourself. This chapter explains how types may be related to each other while exploring the concepts of implicit and explicit type casting and obtaining the type of an object. As previously outlined, C# is what is known as…
-
Implementing Touch ID and Face ID Authentication in iOS 17 Apps
In computer security, user authentication falls into three categories: something you know, something you have, and something you are. The “something you know” category typically involves a memorized password or PIN and is considered the least secure option. A more secure option is the “something you have” approach, which usually takes the form of a…
-
An iOS 17 Sprite Kit Level Editor Game Tutorial
In this chapter, many of the Sprite Kit Framework features outlined in the previous chapter will be used to create a game-based app. In particular, this tutorial will demonstrate the practical use of scenes, textures, sprites, labels, and actions. In addition, the app created in this chapter will also use physics bodies to demonstrate the…
-
An iOS 17 Gesture Recognition Tutorial
Having covered the theory of gesture recognition on iOS in the chapter entitled Identifying Gestures using iOS 17 Gesture Recognizers, this chapter will work through an example application intended to demonstrate the use of the various UIGestureRecognizer subclasses. The application created in this chapter will configure recognizers to detect a number of different gestures on…
-
C# 11 Character and String Data Types
Most software needs a way to store human-readable data in the form of characters and words. This chapter explores the use of string and character data types. The topic of building strings from multiple variables using a concept known as string interpolation is also covered. Character data type When talking about characters, we are referring…
-
Identifying Gestures using iOS 17 Gesture Recognizers
In the chapter entitled Detecting iOS 17 Touch Screen Gesture Motions, we looked at how to track the motion of contact with the touch screen of an iOS device. In practice, an app must respond to specific movements during a gesture. Swiping a finger across the screen might, for example, be required to slide a…
