Author: admin

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

  • An Introduction to iOS 17 Sprite Kit Programming

    Suppose you have ever had an idea for a game but didn’t create it because you lacked the skills or time to write complex game code and logic; look no further than Sprite Kit. Introduced as part of the iOS 7 SDK, Sprite Kit allows 2D games to be easily developed. Sprite Kit provides almost…

  • Detecting iOS 17 Touch Screen Gesture Motions

    The next area of iOS touchscreen event handling that we will look at in this book involves the detection of gestures involving movement. As covered in a previous chapter, a gesture refers to the activity that takes place between a finger touching the screen and the finger then being lifted from the screen. In the…