Beginning iPhone Development with Swift [electronic resource] : Exploring the iOS SDK /
Topley, Kim.author.
Olsson, Fredrik.author.
Nutting, Jack.author.
Mark, David.author.
LaMarche, Jeff.author.
The team that brought you the bestselling Beginning iPhone Development, the book that taught the world how to program on the iPhone, is back again for Beginning iPhone Development with Swift. This definitive guide to the Swift programming language and the iOS 8 SDK, and the source code has been updated to reflect Xcode 6.3.1 and Swift 1.2. There's coverage of brand-new technologies, including Swift playgrounds, as well as significant updates to existing material. You'll have everything you need to create your very own apps for the latest iOS devices. Every single sample app in the book has been rebuilt from scratch using the latest Xcode and the latest 64-bit iOS 8-specific project templates, and designed to take advantage of the latest Xcode features. Assuming little or no working knowledge of the new Swift programming language, and written in a friendly, easy-to-follow style, this book offers a complete soup-to-nuts course in iPhone, iPad, and iPod touch programming. The book starts with the basics, walking through the process of downloading and installing Xcode and the iOS 8 SDK, and then guides you though the creation of your first simple application. From there, you'll learn how to integrate all the interface elements iOS users have come to know and love, such as buttons, switches, pickers, toolbars, and sliders. You'll master a variety of design patterns, from the simplest single view to complex hierarchical drill-downs. The art of table building will be demystified, and you'll learn how to save your data using the iPhone file system. You'll also learn how to save and retrieve your data using a variety of persistence techniques, including Core Data and SQLite. And there's much more!
Contents at a Glance; Contents; About the Authors; About the Technical Reviewer; Chapter 1: Welcome to the Swift Jungle; What This Book Is; What You Need; Developer Options; What You Need to Know; What's Different About Coding for iOS?; Only One Active Application; Only One Window; Limited Access; Limited Response Time; Limited Screen Size; Limited System Resources; Some New Stuff; A Different Approach; What's in This Book; What's New in This Update?; Swift and Xcode Versions; Are You Ready?; Chapter 2: Appeasing the Tiki Gods; Setting Up Your Project in Xcode; The Xcode Project Window
The ToolbarThe Navigator; The Jump Bar; The Utility Area; Interface Builder; New Compiler and Debugger; A Closer Look at Our Project; Introducing Xcode's Interface Builder; File Formats; The Storyboard; The Library; Adding a Label to the View; Changing Attributes; Some iPhone Polish: Finishing Touches; The Launch Screen; Bring It on Home; Chapter 3: Handling Basic Interaction; The Model-View-Controller Paradigm; Creating Our Project; Looking at the View Controller; Understanding Outlets and Actions; Outlets; Actions; Cleaning Up the View Controller; Designing the User Interface
Adding the Buttons and Action MethodAdding the Label and Outlet; Writing the Action Method; Trying It Out; Previewing Layout; Adding Some style; Looking at the Application Delegate; Bring It on Home; Chapter 4: More User Interface Fun; A Screen Full of Controls; Active, Static, and Passive Controls; Creating the Application; Implementing the Image View and Text Fields; Adding the Image View; Resizing the Image View; Setting View Attributes; The Mode Attribute; Tag; Interaction Check Boxes; The Alpha Value; Background; Tint; Drawing Check Boxes; Stretching; Adding the Text Fields
Text Field Inspector SettingsSetting the Attributes for the Second Text Field; Adding Constraints; Creating and Connecting Outlets; Closing the Keyboard; Closing the Keyboard When Done Is Tapped; Touching the Background to Close the Keyboard; Adding the Slider and Label; Adding More Constraints; Creating and Connecting the Actions and Outlets; Implementing the Action Method; Implementing the Switches, Button, and Segmented Control; Adding Two Labeled Switches; Connecting and Creating Outlets and Actions; Implementing the Switch Actions; Adding the Button; Spiffing Up the Button
Stretchable ImagesControl States; Connecting and Creating the Button Outlets and Actions; Implementing the Segmented Control Action; Implementing the Action Sheet and Alert; Showing an Action Sheet; Showing an Alert; Crossing the Finish Line; Chapter 5: Rotation and Adaptive Layout; The Mechanics of Rotation; Points, Pixels, and the Retina Display; Handling Rotation; Choosing Your View Orientations; Supported Orientations at the App Level; Per-Controller Rotation Support; Designing an Interface Using Constraints; Overriding Default Constraints; Full-Width Labels; Creating Adaptive Layouts
The Restructure Application
"Learn to build iPhone and iPad apps using the iOS 8 SDK and Swift"--Cover.
Includes index.
The team that brought you the bestselling Beginning iPhone Development, the book that taught the world how to program on the iPhone, is back again for Beginning iPhone Development with Swift. This definitive guide to the Swift programming language and the iOS 8 SDK, and the source code has been updated to reflect Xcode 6.3.1 and Swift 1.2. There's coverage of brand-new technologies, including Swift playgrounds, as well as significant updates to existing material. You'll have everything you need to create your very own apps for the latest iOS devices. Every single sample app in the book has been rebuilt from scratch using the latest Xcode and the latest 64-bit iOS 8-specific project templates, and designed to take advantage of the latest Xcode features. Assuming little or no working knowledge of the new Swift programming language, and written in a friendly, easy-to-follow style, this book offers a complete soup-to-nuts course in iPhone, iPad, and iPod touch programming. The book starts with the basics, walking through the process of downloading and installing Xcode and the iOS 8 SDK, and then guides you though the creation of your first simple application. From there, you'll learn how to integrate all the interface elements iOS users have come to know and love, such as buttons, switches, pickers, toolbars, and sliders. You'll master a variety of design patterns, from the simplest single view to complex hierarchical drill-downs. The art of table building will be demystified, and you'll learn how to save your data using the iPhone file system. You'll also learn how to save and retrieve your data using a variety of persistence techniques, including Core Data and SQLite. And there's much more!
iOS (Electronic resource)
Computer programming.
Programming Techniques.