Author: admin

  • An Introduction to C# 11 Object-Oriented Programming

    Get up to speed in this chapter on object-oriented programming in C# with details on declaring classes, methods, fields, and properties. Topics covered include adding methods and properties to a class and creating, initializing, and finalizing class instances. So far in this course, we have looked at the basics of programming in C#, such as…

  • An iOS 17 UIKit Dynamics Tutorial

    With the basics of UIKit Dynamics covered in the previous chapter, this chapter will apply this knowledge to create an example app designed to show UIKit Dynamics in action. The example app created in this chapter will use the gravity, collision, elasticity, and attachment features in conjunction with touch handling to demonstrate how these key…

  • C# 11 Looping with do and while Statements

    With the topic of constructing loops using the C# for statement, this chapter aims to introduce two more looping options: the while and do … while constructs. The C# for loop described in the previous lesson works well when you know in advance how many times a particular task needs to be repeated in a program. However,…

  • iOS 17 UIKit Dynamics – An Overview

    UIKit Dynamics provides a powerful and flexible mechanism for combining user interaction and animation into iOS user interfaces. What distinguishes UIKit Dynamics from other approaches to animation is the ability to declare animation behavior in terms of real-world physics. Before moving on to a detailed tutorial in the next chapter, this chapter will provide an…

  • C# 11 Looping with the for Statement

    This chapter will continue looking at flow control in C# code. In the preceding chapters, we have examined using logical expressions to decide what C# code should be executed. Another aspect of control flow entails the definition of loops. Loops are essentially sequences of C# statements that will be executed repeatedly until a specified condition…

  • iOS 17 Animation using UIViewPropertyAnimator

    Most visual effects used throughout the iOS user interface are performed using UIKit animation. UIKit provides a simple mechanism for implementing basic animation within an iOS app. For example, if you need a user interface element to fade in or out of view gently, slide smoothly across the screen, or gracefully resize or rotate before…

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