I have created videos on how to make modal popups in iOS before. But here is yet another way in which you can create popups.
Enjoy this info? Visit my Patreon page to support educators and artists.
My YouTube Channel
Need help with SwiftUI? Check out my products at: Big Mountain Studio Website
Sunday, April 9, 2017
Monday, March 27, 2017
Storyboard Tips - Updating Constraints (iOS, Xcode 8)
Updating constraints on the storyboard can be easy with these tips:
Sunday, March 26, 2017
Transparent TableView - Zelda App (iOS, Xcode 8, Swift 3)
Learn how to make your table view transparent so you can see the background through it. You will also learn a little about customizing the tableview's separator.
Closures - Zelda App (iOS, Xcode 8, Swift 3)
You may not be creating closures all the time but it is good to know about them and how they work because you will be using them ALL the time.
Wednesday, March 22, 2017
Play A Movie That Is In Your Project
On your Storyboard, add a "AVKit Player View Controller". Connect it with a Segue from a UIButton you put on the View Controller.
Like this:
(Xcode 8.2, Swift 3)
Like this:
import UIKit
import AVKit
import AVFoundation
class ViewController: UIViewController {
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
let destination = segue.destination as! AVPlayerViewController
let url = Bundle.main.url(forResource: "myMovieName", withExtension: "m4v")
if let movieURL = url {
destination.player = AVPlayer(url: movieURL)
}
}
}
(Xcode 8.2, Swift 3)
Saturday, March 18, 2017
Introduction to iOS Threading - Zelda App (Xcode 8, Swift 3)
Get an introduction to threading in iOS to make your apps more responsive when another process is taking a long time.
Sunday, March 12, 2017
Show Execution Time (Elapsed Time)
Sometimes you want to see how long it took some code to execute. Here is an example of one way you could do this.
(Swift 3)
func myLongRunningFunction() {
let start = Date()
// Do you work
let end = Date()
let elapsedTime = end.timeIntervalSince(start)
print("Elapsed Time: \(elapsedTime)")
}
(Swift 3)
Subscribe to:
Posts (Atom)
SwiftUI Search & Filter with Combine - Part 3 (iOS, Xcode 13, SwiftUI, 2...
In part 3 of the Searchable video series, I show you how to use Combine in #SwiftUI for the search and filter logic connected to the searcha...
-
This post visually shows the stack view's Alignment and Distribution property settings. There is also a section on resolving auto layou...
-
I couldn't find a tutorial on this so this is my documented journey into trying to figure out how to implement OAuthSwift into an iOS p...
-
I had someone ask about aligning text within a TextField view and I didn't have a page in my book for this but added one just now. ...
