Learning Swift: Building Apps for OS X and iOS

Learning Swift: Building Apps for OS X and iOS

Paris Buttfield-Addison

Language: English

Pages: 536

ISBN: 1491940743

Format: PDF / Kindle (mobi) / ePub

Learning Swift: Building Apps for OS X and iOS

Paris Buttfield-Addison

Language: English

Pages: 536

ISBN: 1491940743

Format: PDF / Kindle (mobi) / ePub


Get hands-on experience with Apple’s Swift programming language by building real working apps. With this practical guide, skilled programmers with little or no knowledge of Apple development will learn how to code with Swift 2 by developing three complete, tightly linked versions of the Notes application for the OS X, iOS, and watchOS platforms.

In the process, you’ll learn Swift’s fundamentals, including its syntax and features, along with the basics of the Cocoa, CocoaTouch, and WatchKit frameworks. This book teaches you how to use common design patterns for Swift, how to structure an application for Apple’s platforms, and how to submit working apps to the App Store.

Divided into four distinct parts, this book includes:

  • Swift 2 basics: Learn Swift’s features for object-oriented development, as well as various developer tools
  • OS X app development: Set up your app, work with its documents, and build out its features
  • iOS app development: Use multimedia, contacts, location, notifications, and iCloud files to build a fully featured iOS Notes app
  • Advanced app extensions: Support Apple Watch and learn how to debug, monitor, and test all three of your Swift apps

HBase in Action

Software Exorcism

Beginning Android 3D Game Development

Make a 2D RPG in a Weekend: With RPG Maker VX Ace

Beginning C# Object-Oriented Programming (2nd Edition)

Applied WPF 4 in Context

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

positions and you like that, stick with it. Next, connect each button to its corresponding outlet; the record button should be connected to recordButton, and so on for the rest. Connect each button to new actions in AudioAttachmentViewController, called recordTapped, playTapped, and stopTapped: @IBAction func recordTapped(sender: AnyObject) { beginRecording() } @IBAction func playTapped(sender: AnyObject) { beginPlaying() } @IBAction func stopTapped(sender: AnyObject) { stopRecording()

don’t want to unwrap your optional variables every time you want to use them, you can declare a variable as an implicitly unwrapped optional, like this: var implicitlyUnwrappedOptionalInteger : Int! implicitlyUnwrappedOptionalInteger = 1 1 + implicitlyUnwrappedOptionalInteger // = 2 Implicitly unwrapped optionals are regular optionals: they can either contain nil, or not. However, whenever you access their value, the compiler unwraps it. This lets you use their values directly but can be

Localization-Localization localNotification computed property, Notifications location attachments (iOS), Location Attachments-Location Attachmentsadding annotation to map to show user location, Location Attachments creating and saving annotation in Document object, Location Attachments LocationAttachmentViewController, Location AttachmentscloseAttachmentWithoutSaving, Location Attachments connecting to DocumentViewController with segue, Location Attachments possible failures to get

(access control), Access Controlclasses declared as, properties and methods, Access Control private setter for properties, Access Control properties and methods declared as, Access Control product name, Creating the OS X Project Profile action, The toolbar Profile in Instruments button (Xcode), Instruments programming language, choosing for your app, Creating Your First Project with Xcode Project Navigator (Xcode), The navigator, Creating the OS X Project project settings window

storyboards, Nibs and Storyboards in stack view, Setting Up the Interface for Attachments on iOS, Using Constraints to Control Size and Position view objects, NSButton and UITextField, Model-View-Controller windows versus, Window Controllers and View Controllers viewWillAppear method, Displaying Attachment Cellsadding searchable metadata to document user activity, Searchability calling updateBarItems method, Notifications for location attachment, Location Attachments for

Download sample

Download