Hank Hill Mobile Apps Sound Board
This is a quick app created using AVFoundation in Swift 4. Thanks to our voice talent Austin from IMD II.
Here’s a peek at the code that plays the wav files:
Alert Alert
Here is a technique to fire an alert in Swift 4.
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
@IBAction func setAlert(_ sender: UIButton) {
// create the alert
let alert = UIAlertController(title: “Hello”, message: “This is an Alert”, preferredStyle: .alert)
// create the actions
let okAction = UIAlertAction(title: “OK”, style: .default, handler: nil)
let okActionNext = UIAlertAction(title: “Next”, style: .default, handler: nil)
// create an action with a function
let okActionThree = UIAlertAction(title: “Next”, style: .default, handler: { action in self.runThis()
})
// add the actions to the alert
alert.addAction(okAction)
alert.addAction(okActionNext)
alert.addAction(okActionThree)
// fire the alert
present(alert, animated: true, completion: nil)
}
func runThis(){
print (“WaHoo”)
}
}
GDEX Field Trip Image Gallery
GDEX is a Weekend Celebration of Games that attracts fans, students and developers from across the country. Stemming from the local Columbus Community Group, GDEX strives to help everyone Connect, Share, and Learn about the current state of the industry and a positive future for all creators.
Brush Packs Are Here!
Riley and Mason demonstrate installing a brush pack.
Click here to download the Mobile Apps Brush Packs