Hacking with Swift — Learning Project 35 Random Numbers Setting up Create a new iOS playground and call it “Random Numbers”. Save it somewhere sensible. Generating random numbers without GameplayKit This is how modern Swift (post 4.2) manages it: Old-fashioned randomness The arc4random() function returns numbers between 0 and 4.294.967.295 … To generate a randomContinue reading “Learning Swift — Day 150 to 151”
Tag Archives: GameplayKit
Learning Swift — Day 147 to 149
Hacking with Swift: learning project 34, Four in a Row Setting up Create a new Xcode project, call it “Four in a row” and save it somewhere sensible. Set its deployment info to use only iPad and to be only in Landscape orientation. Creating the interface with UIStackView Open Main.storyboard, select the view controller andContinue reading “Learning Swift — Day 147 to 149”