Swift: How to use an Array to Randomly Select a String

If you wish to make an app that randomly selects a word or a phrase, then you’ll need to use an array.  An array is a group of strings, numbers, or anything else. Such as: let array = [“Heads”,”Tails”] Since we want to randomly select a word from this array, we need to use the arc4random statement, […]

CONTINUE READING....

Swift: NSUserDefaults – There IS a difference between the two in Swift 4 and Swift 5

The other day, I needed to use the simple NSUserDefaults to save information to the iOS device in my new Swift 5 project. Not using it that often, I went up on Google and found this helpful article.  But to my surprise, the example was for Swift 4.  Fortunately, Xcode helped me “convert” the code […]

CONTINUE READING....