Skip to content

Category: Coding

Unit 1.3: User Entry

Objectives Create a text field in Interface Builder Connect the text field to the view controller as an IBOutlet Print the value from the text field as a String to console https://github.com/Classroom-Technologies-LLP/Unit-1.3-User-Entry

Unit 1.2: Simple Calculator

In this unit, you will use a UIButton to create an Action that adds two numbers. Objectives Declare variable and constant identifiers. Operating on two identifiers. Challenge Create a 4-buttons calculator that add, subtract, multiply and divide two identifiers of Double data type. Git Repo https://github.com/Classroom-Technologies-LLP/Unit-1.2-Simple-Calculator

Unit 1.1: Hello World

In this unit, you will learn how to add a button to the iPhone in the Interface Builder and print the String “Hello World” when the button is tapped. https://github.com/Classroom-Technologies-LLP/Unit-1.1-Hello-World

Branching in Git to Control Versions

This article is a followup on the introduction to source control with GitHub. It covers the process using branches to control different versions of a single project. Branching in Git After the first commit, you will be on the master branch. This should be the branch that contains the finalised code. When you are following a code tutorial, this branch should contain the latest working version of your tutorial. When developing a software project, this branch contains the code of your finalised working version. Before you continue adding more code to your master branch while following a tutorial, branch out…

Using GitHub with Xcode

Coding is hard. To a beginner, all the code looks alike. A beginner will have difficulties identifying where to insert code when they follow the instructions from a coding book. This problem is compounded when many coding textbooks contain typo errors such that even when the learner follows exactly what the book wrote, the code simply could not run as expected. As a trainer, it is often that we use long projects to showcase a combination of coding concepts. However, from the start of the project to the end, there are many intermediate stages where the learner may type wrongly…

App Development with Swift – Part 2

After two terms of running a weekly course on App Development with Swift, there are thoughts to the curriculum and resources that Apple developed for students to learn about coding in Swift. Curriculum The course has two main resources that run hand in hand: the iBook App Development with Swift and its resource files. The student resource files contains Playground files and the book’s source codes together with needed media files for some projects described in the book. There are also accompanying resources for teachers. The first is the teacher’s guide to the iBook. The second contains answers to the…

App Development with Swift – Part 1

This first part of a series of post outline my process of conducting the App Development with Swift to a group of high school students. This program was initiated by myself to the school management and it was approved quickly because my school has many talented students who had always been interested in coding but does not have the required resources to follow up with their passion. Introduction I introduced the program to the student body in an announcement. I highlighted the important criteria for students who wished to enrol in this program. Specifically, I am inviting students who meet…