Category: Swift 4
14
Jan
GAME: Connected Squares Adventures (iOS only)
by Maribel
No Comments
Connected Squares A game to have fun and to challenge yourself! For iOS devices only! Download here!
28
Dec
Navigation Controllers
by Maribel
No Comments
A UINavigationBar object is a bar, typically displayed at the top of the window, containing buttons for navigating within a hierarchy of screens. The primary components...
20
Dec
GAME: Is It Prime?
by Maribel
No Comments
// // ViewController.swift // test // // Created by Maribel Aristy on 12/19/17. // Copyright © 2017 Maribel Aristy. All rights reserved. // import...
19
Dec
OPTIONALS MASTERCLASS
by Maribel
No Comments
Optionals say either "there is a value, and it equals x" or "there isn't a value at all". An Optional is a type on its...
13
Dec
CLASSES AND OBJECTS
by Maribel
No Comments
//CLASS //To create a new class use the class keyword followed by the class name and a pair of braces. Inside the braces we...
12
Dec
FOR LOOPS – Double Numbers
by Maribel
No Comments
var sampleArray = [8.0, 7.0, 19.0, 28.0] for (index,value) in sampleArray.enumerated(){ sampleArray [index] = value / 2 } print(sampleArray) // ".0" in each...
12
Dec
FOR LOOPS (with Numbers and Names)
by Maribel
No Comments
//FOR LOOPS let array = [23, 32, 44, 34] for number in array { print (number) } // FOR LOOPS WITH NAMES let...
08
Dec
WHILE LOOPS #3 – LOOP IN AN ARRAY
by Maribel
No Comments
//While loop in an array var array = [7, 23, 98, 1, 0, 763] a = 0 while a < array.count{ array [a]...
08
Dec
WHILE LOOPS #2
by Maribel
No Comments
More while loops. //Display the first 20 numbers in the seven times table // let multiplier = 7 let upperLimit = 20 var counter =...
08
Dec
WHILE LOOPS #1
by Maribel
No Comments
//While loops: A while loop performs a set of statements until a condition becomes false. These kinds of...