Cargando…

Swift essentials : get up and running lightening fast with this practical guide to building applications with Swift /

Whether you are a seasoned Objective-C developer or new to the Xcode platform, Swift Essentials will provide you with all you need to know to get started with the language. Prior experience with iOS development is not necessary, but will be helpful to get the most out of the book.

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Blewitt, Alex Dr (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing, 2014.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Exploring Swift; Getting started with Swift; Numeric literals; Floating point literals; String literals; Variables and constants; Collection types; Optional types; Nil coalescing operator; Conditional logic; If statements; Switch statements; Iteration; Iterating over keys and values in a dictionary; Iteration with for loops; Break and continue; Functions; Named arguments; Optional arguments and default values; Anonymous arguments
  • Multiple return values and argumentsReturning structured values; Command-line Swift; Interpreted Swift scripts; Compiled Swift scripts; Summary; Chapter 2: Playing with Swift; Getting started with playgrounds; Creating a playground; Viewing the console output; Viewing the timeline; Displaying objects with Quick Look; Showing colored labels; Showing images; Advanced techniques; Capturing values explicitly; Running asynchronous code; Playgrounds and documentation; Learning with playgrounds; Understanding the playground format; Adding a new documentation section; Styling the documentation
  • Adding resources to a playgroundAdditional entries in the header; Generating playgrounds automatically; Markdown; AsciiDoc; Limitations of playgrounds; Summary; Chapter 3: Creating an iOS Swift App; Understanding iOS applications; Creating a single view iOS application; Removing the storyboard; Setting up the view controller; Swift classes, protocols, and enums; Classes in Swift; Subclasses and testing in Swift; Protocols in Swift; Enums in Swift; Raw values; Associated values; Creating a master-detail iOS application; The AppDelegate class; The MasterViewController class
  • The DetailViewController classSummary; Chapter 4: Storyboard Applications with Swift and iOS; Storyboards, scenes, and segues; Creating a storyboard project; Scenes and view controllers; Adding views to the scene; Segues; Adding a navigation controller; Naming scenes and views; Swift and storyboards; Custom view controllers; Connecting views to outlets in Swift; Calling actions from interface builder; Triggering a segue with code; Passing data with segues; Using Auto Layout; Understanding constraints; Adding constraints; Adding a constraint with the drag and drop method
  • Adding constraints to the Press Me sceneAdding missing constraints; Summary; Chapter 5: Creating Custom Views in Swift; An overview of UIView; Creating new views with interface builder; Creating a table view controller; Showing data in the table; Defining a view in a xib file; Wiring a custom view class; Dealing with intrinsic size; Creating views by subclassing UIView; Auto Layout and custom views; Constraints and the visual format language; Adding the custom view to the table; Custom graphics with drawRect; Drawing graphics in drawRect; Responding to orientation changes