Category: Swift 4.0
Posted on April 24, 2019
by Steven Lipton
Leave a Comment
Ducking has nothing to do with waterfowl. Sometimes you’ll want to add sound to your app, but the user will be using the music or others app along with your app. For that, you’ll want to slightly lower the volume of the background music… Continue Reading “Ducking Sound in AVAudioSession”
Posted on April 17, 2019
by Steven Lipton
Leave a Comment
Sometimes table views could use a few buttons. There’s two delegates which create swipe buttons on table view cells. Let’s learn how you can implement these buttons and an interesting hidden feature you can do with them. There is two delegate methods, one for… Continue Reading “Actions in Table Views”
Category: GUI, iOS Development Weekly Tips, ios12, LinkedIn Learning / Lynda.com, Swift, Swift 4.0, Swift Programming, TutorialTags: actions, drag, ios, swipe, swipe actions, tableview, UITableView
Posted on March 20, 2019
by Steven Lipton
Leave a Comment
You’ve probably used ranges in loops, without knowing it, but ranges are really a type in Swift. Have you ever thought about ranges and all their power? I’ll show you a few things you might want to know about Swift ranges. I’ve put a… Continue Reading “Ranges in Swift”
Category: Swift, Swift 3.0, Swift 4.0, Swift playgrounds, Swift Programming, TutorialTags: Arrays, contains, for loop, ios, NSRange, playgrounds, range, swift, Swift playgrounds
Posted on February 13, 2019
by Steven Lipton
Leave a Comment
You’ve seen other apps rotate views, but you may have no idea how to do it yourself. Let me show you one way to rotate views. We’ll make a simple knob control you might be able to use in your apps. Download the example… Continue Reading “Sliders as Knobs”
Category: GUI, ios12, LinkedIn Learning / Lynda.com, Swift 4.0, Swift Programming, TutorialTags: ios, knob, knob control, layer property, rotation, storyboard, swift, UI, UIView, Xcode
Posted on January 23, 2019
by Steven Lipton
Leave a Comment
UI doesn’t have to look like a rectangle. You might want a different shape for your icon. You can do that with layer masks. Let’s learn how to set them up. Download the example files. You’ll find an app with two square buttons. If… Continue Reading “CALayer Masks”
Category: Auto Layout and Size Classes, GUI, iOS Development Weekly Tips, ios12, LinkedIn Learning / Lynda.com, Swift 4.0, Swift Programming, TutorialTags: App Programming, Apple swift, Buttons, CALayer, cutouts, graphics, GUI, ios, Layer, Mask, UI, UX, views
Posted on January 16, 2019
by Steven Lipton
1 Comment
In a previous tip, I drew rectangles and circles in a UIView. This time, let’s add lines and curves using paths to draw some toast. Download the playground I set up for you. I set up my code to do all the drawing in… Continue Reading “Draw Paths in UIViews”
Category: Core Graphics, GUI, iOS Development Weekly Tips, LinkedIn Learning / Lynda.com, Swift, Swift 4.0, Swift playgrounds, Swift Programming, TutorialTags: addLine, addQuadCurve, context, Drawing, drawpath, path, paths, Programmatic UIView, UIView
Posted on October 17, 2018
by Steven Lipton
4 Comments
In the good old days, Apple used a lot of rounded corner buttons. Many developers use several images to get the effect of round buttons. The CALayer of UIButton does have a feature for you to easily get rounded corners, and even circular buttons.… Continue Reading “Make Round Buttons and UIViews”
Category: GUI, iOS Development Weekly Tips, ios12, LinkedIn Learning / Lynda.com, Swift 4.0, Swift Programming, TutorialTags: App Programming, Apple swift, button, CALayer, Corner, GUI, ios, iPhone Programming, Round, swift, UIView
Posted on October 10, 2018
by Steven Lipton
1 Comment
It’s sometimes nice to add a little sound to your applications, and even better to add a voice. Outside Siri, you can use a cool and simple AVFoundation API to make iOS devices talk. Let’s learn how to use the Speech synthesizer. Download the… Continue Reading “Use the Speech Synthesizer”
Category: GUI, iOS Development Weekly Tips, ios12, Swift, Swift 4.0, Swift Programming, Tutorial, Xcode 10Tags: AVFoundation, Language, Localizations, Speech, Speech Synthesizer, Synthesizer, Voices
Posted on September 26, 2018
by Steven Lipton
Leave a Comment
One of the more perplexing parts of using tab bar controllers is customizing tabs. If you understand some of the properties of an image, You can do some major customization. Download the example file. If you open the main storyboard you’ll see three view… Continue Reading “Customizing Tab Bar Controller Icons.”
Category: GUI, iOS Development Weekly Tips, ios12, LinkedIn Learning / Lynda.com, Swift 4.0, Swift Programming, Tutorial, Xcode 10Tags: icon, image, swift, Tab bar, template, UITabBar, UITabBarController, UITabBarItem
Posted on August 15, 2018
by Steven Lipton
Leave a Comment
It’s buried in the docs, so you might not know how inaccurate Timer objects can be if you are trying to show the time. Let’s look at that inaccuracy and how to work around it. You’ll find in the exercise file on GitHub a… Continue Reading “Timer Accuracy in iOS”