Category: ios8
Posted on September 12, 2016
by Steven Lipton
1 Comment
Have you ever seen some factory method in UIKit and see this strange parameter called completion or completionHandler? Usually you put nil there and leave it alone. These strange things like (Double,Double) -> Bool things are closures. Closures are functions you use as types,… Continue Reading “Understand and Use Closures in Swift”
Category: iOS10, ios8, iOS9, Swift, Swift Programming, TutorialTags: closure, completion, completionHandler, defining closures, functions, handler, swift, using closures
Posted on July 6, 2016
by Steven Lipton
12 Comments
In this lesson, we’ll take a look at tab bar controllers and how to add them in the storyboard. For more on implementing them completely in code see Swift Swift: Using Tab Bar Controllers in Swift. For more on data sharing once set up… Continue Reading “Tab Bar Controllers in Xcode 8 Storyboards”
Category: Auto Layout and Size Classes, ios8, Swift Programming, Swift Swift, TutorialTags: autolayout, iPhone Programming, more, swift programming, Tab bar, tab bar icon color, Tab Bar Icons, Tab bar items, Tab bar more, Xcode, xibs in swift
Posted on June 28, 2016
by Steven Lipton
27 Comments
Almost every iPhone and iPad now has a camera. Many people want to use a camera in their apps for various reasons. While you may not be building the next Instagram or Twitter, there are many places where photo documentation comes in handy. There… Continue Reading “How to Use UIImagePickerController for a Camera and Photo Library in Swift 3.0.”
Category: GUI, ios8, Swift, Swift Swift, TutorialTags: camera, crashes, info.plist, Photo, Photo Library, popover, popover in swift, popover UIBarButtonItem, UIAlertController, UIAlertController example, UIImagePicker, UIImagePickerController, UIImagePickerControllerDelegate, UIImageView
Posted on May 9, 2016
by Steven Lipton
11 Comments
Everyone may remember when Apple first introduced MapKit to replace Google Maps on iPhones, they ended up to apologizing. However over time, developers have found how easy it is to use MapKit. This API provides features which make using both 2D and 3D maps… Continue Reading “How to Use MapKit for 2D and 3D Map Views.”
Category: GUI, ios8, iOS9, Swift, Swift Programming, TutorialTags: 2d maps, 3d maps, Apple maps, camera, coordinates, hybrid, latitude, longitude, mapCamera, MapKit, maps, pizza, satellite
Posted on April 11, 2016
by Steven Lipton
9 Comments
Ever wanted that sliding sidebar or an alert with a image picker? Apple has many great ways of presenting view controllers, but sometimes we want something different, something new. For that we subclass UIPresentationController. However there’s a few concepts that you’ll need to wrap… Continue Reading “The Step by Step Guide to Custom Presentation Controllers”
Category: Auto Layout and Size Classes, GUI, ios8, iOS9, Swift, Swift Programming, TutorialTags: animation, custom, dismissal, gestures, presentation, presentationTransitionWillBegin, UIPresentationController, UIViewControllerAnimatedTransitioning, UIViewControllerContextTransitioning, UIViewControllerTransitioningDelegate
Posted on March 14, 2016
by Steven Lipton
5 Comments
Have you ever wondered how to put user defined settings for your app into the settings app? Xcode can create a special property list called a settings bundle which can append the NSUserDefaults with more entries from Settings App. You’ll find out in this… Continue Reading “Using Settings Bundles with Swift”
Category: ios8, iOS9, Swift, Swift Programming, TutorialTags: Notification, NSUserDefaults, NSUserDefaultsDidChangeNotification, observer, property list, registerDefaults, Root.plist, Settings Bundle, setttings table, standardUserDefaults
Posted on March 4, 2016
by Steven Lipton
Leave a Comment
It’s rare to have a one controller application, even in something as small as the Apple watch. Multiple View Controllers, or Interface Controllers as they are called in WatchKit, need ways to move between controllers. WatchOS2 has a simplified version of the iOS navigation… Continue Reading “Using WatchOS2 Navigation in Swift”
Category: GUI, ios8, iOS9, Swift, Swift Programming, Tutorial, WatchKitTags: Apple Watch, awakeWithContext, contextForsegueWithIdentifier, modal, navigation, pages, presentControllerWithName, presentControllerWithNames, programmatic, pushControllerWithName, WatchOS, WatchOS2, WatchOS2.2, WatchOS2.3
Posted on February 11, 2016
by Steven Lipton
26 Comments
This will be the first in a series of lessons on persistence in iOS applications. Persistence is keep data around even if your app ends. As we’ll see in this series there are many techniques to save and read data. One Common one Apple… Continue Reading “How to Use Property Lists (.plist) in Swift”
Category: ios8, iOS9, Swift, Swift Programming, Swift Swift, TutorialTags: Apple, editing, plist, property list, reading plist, Xcode, XML
Posted on January 29, 2016
by Steven Lipton
10 Comments
In the beginning there was the unsigned integer, and it was good. If you go deep into machine code you will still find that any device is nothing more than unsigned integers. All other values Int, Float, Bool, Character, and String are forms or… Continue Reading “How and Why To Use Unsigned Integers (UInt)”
Category: ios8, iOS9, Swift, Swift Programming, TutorialTags: bit mask, bitmask, integer, shift, signed, UInt, UInt16, UInt32, Uint64, UInt8, unsigned, unsigned Integers
Posted on October 6, 2015
by Steven Lipton
4 Comments
Table views are a lot like potato chips: You can’t have just one. Often, table views relate to each other in what is often referred to as a drill-down. Drill downs typically take the selected data and provide another list in a table about… Continue Reading “How to Make Drill-Down Tables in Swift”
Category: ios8, iOS9, Swift Programming, Swift Swift, TutorialTags: dictionary, drill-down, dynamic table view, key, model, model view controller, MVC, selective, swift, Table view, value