Category: iOS

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

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

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

  • An Example iOS 17 Touch, Multitouch, and Tap App

    Now that we have covered the basic concepts behind the handling of iOS user interaction with an iPhone or iPad touchscreen in the previous chapter, this chapter will work through a tutorial designed to highlight the handling of taps and touches. Topics covered in this chapter include the detection of single and multiple taps and…

  • An iOS 17 Real-Time Speech Recognition Tutorial

    The previous chapter, entitled An iOS 17 Speech Recognition Tutorial, introduced the Speech framework and the speech recognition capabilities available to app developers since the introduction of the iOS 10 SDK. The chapter also provided a tutorial demonstrating using the Speech framework to transcribe a pre-recorded audio file into text. This chapter will build on…

  • An Overview of iOS 17 Multitouch, Taps, and Gestures

    In terms of physical points of interaction between the device and the user, the iPhone and iPad provide four buttons (three in the case of the iPhone X), a switch, and a touch screen. Without question, the user will spend far more time using the touch screen than any other device aspect. Therefore, any app…