Author: admin

  • The C# 11 switch Statement

    In this chapter, learn how to use the C# switch statement as a cleaner alternative to complicated if.. else if… statements. In the previous chapter, we looked at controlling program execution flow using the if and else statements. While these statement constructs work well for testing a limited number of conditions, they quickly become unwieldy when dealing with larger…

  • An iOS Graphics Tutorial using Core Graphics and Core Image

    As previously discussed in Drawing iOS 2D Graphics with Core Graphics, the Quartz 2D API is the primary mechanism by which 2D drawing operations are performed within iOS apps. Having provided an overview of Quartz 2D as it pertains to iOS development in that chapter, the focus of this chapter is to provide a tutorial…

  • 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…