Overcome the vexing issues you’ll inevitably confront when creating apps for the iPhone, iPad, or iPod touch. By making use of new and revised recipes in this updated cookbook, you’ll quickly learn the steps necessary to write complete iOS apps—including ways to store and protect data, enhance and animate graphics, manage files and folders, and take advantage of Passbook. Thoroughly updated for iOS 6 SDK, this cookbook shows you how to use hundreds of techniques to solve problems that developers of all levels commonly face. Each recipe includes sample code you can use right away. Use Pass Kit to deliver digitally-signed passes such as loyalty cards Define the layout of UI elements with Cocoa Auto Layout Develop location-aware apps Get working examples for implementing gesture recognizers Use new Objective-C Runtime features Play audio and video files and access the iPod library Retrieve contacts and groups from the Address Book Determine camera availability and access the Photo Library Create multitasking-aware apps Use Event Kit to manage calendars, dates, and events Apply the accelerometer and gyroscope Enhance your app with the iCloud service
iOS 11, Swift 4, and Xcode 9 provide many new APIs for iOS developers. With this cookbook, you’ll learn more than 170 proven solutions for tackling the latest features in iOS 11 and watchOS 4, including new ways to use Swift and Xcode to make your day-to-day app development life easier. This collection of code-rich recipes also gets you up to speed on continuous delivery and continuous integration systems. Ideal for intermediate and advanced iOS developers looking to work with the newest version of iOS, these recipes include reusable code on GitHub, so you can put them to work in your project right away. Among the topics covered in this book: New features in Swift 4 and Xcode 9 Tools for continuous delivery and continuous integration Snapshot testing and test automation Creating document-based applications Updated Map view and Core Location features iOS 11’s Security and Password Autofill Data storage with Apple’s Core Data Creating lively user interfaces with UI Dynamics Building iMessage applications and sticker packages Integrating Siri into your apps with Siri Kit Creating fascinating apps for Apple Watch
You can build a variety of amazing apps on the iOS platform—and every one of them presents a unique set of problems. With the recipes in this cookbook, you'll go beyond theory to solve the vexing, real-life issues you’re likely to face when creating apps for the iPhone, iPad, or iPod Touch. Each recipe provides a clear solution and sample code that you can use right away. You'll find solutions for working with development frameworks in iOS SDK 4 and technologies such as Cocoa, Objective-C, Xcode, and Interface Builder. Whether you have a little or a lot of experience with iOS development, you’ll find the help you need for every phase of the process, from initial idea to completed proje...
Now that multicore processors are coming to mobile devices, wouldn't it be great to take advantage of all those cores without having to manage threads? This concise book shows you how to use Apple's Grand Central Dispatch (GCD) to simplify programming on multicore iOS devices and Mac OS X. Managing your application’s resources on more than one core isn't easy, but it's vital. Apps that use only one core in a multicore environment will slow to a crawl. If you know how to program with Cocoa or Cocoa Touch, this guide will get you started with GCD right away, with many examples to help you write high-performing multithreaded apps. Package your code as block objects and invoke them with GCD Understand dispatch queues—the pools of threads managed by GCD Use different methods for executing UI and non-UI tasks Create a group of tasks that GCD can run all at once Instruct GCD to execute tasks only once or after a delay Discover how to construct your own dispatch queues
Jazz up your iPhone and iPad apps with some slick graphics and animation—and keep users from looking elsewhere. This short and concise book shows developers with even little Cocoa programming experience how to create impressive graphics and animation effects with relatively easy coding. Learn how to incorporate smooth animations and draw images in your apps to achieve the classy look you want. The recipes in this book include step-by-step instructions and simple code solutions that you can put to work right away. Learn basic concepts for adapting to different screen sizes Construct, set, and use colors Draw text, images, lines, and rectangles Add shadows to shapes Create and draw gradients Learn how to animate and scale, rotate, or move views
Overcome the vexing issues you’re likely to face when creating apps for the iPhone, iPad, or iPod touch. With new and thoroughly revised recipes in this updated cookbook, you’ll quickly learn the steps necessary to work with the iOS 7 SDK, including solutions for bringing real-world physics and movement to your apps with UIKit Dynamics APIs. You’ll learn hundreds of techniques for storing and protecting data, sending and receiving notifications, enhancing and animating graphics, managing files and folders, and many other options. Each recipe includes sample code you can use right away. Create vibrant and lifelike user interfaces with UIKit Dynamics Use the Keychain to protect your app’s data Develop location-aware and multitasking-aware apps Work with iOS 7’s audio and video APIs Use Event Kit UI to manage calendars, dates, and events Take advantage of the accelerometer and the gyroscope Integrate iCloud into your apps Define the layout of UI elements with Auto Layout Get working examples for implementing gesture recognizers Retrieve and manipulate contacts and groups from the Address Book Determine a camera’s availability and access the Photo Library
Gotowe rozwi?zania i przyk?ady aplikacji dla urz?dze? iPhone, iPad i iPod touch Szeroki wachlarz urz?dze? mobilnych Apple sprawia, ?e ?atwo jest dzi?ki nim dotrze? do wielkiej liczby u?ytkownikow. Z drugiej strony stawia jednak przed programistami nowe wyzwania - ro?ne rozdzielczo?ci ekranu i ro?ne wyposa?enie urz?dze? to tylko niektore z nich. Jak sobie poradzi? z codziennymi problemami w trakcie tworzenia aplikacji dla iOS-a? Je?eli znasz iOS SDK, dzi?ki tej ksi ce nauczysz si? stosowa? setki technik z zakresu tworzenia oprogramowania na platformie iOS oraz pokonasz wiele uci liwych problemow, ktore pojawiaj? si? podczas tworzenia aplikacji dla urz?dze? iPhone, iPad i iPod touch. Dowiesz s...
Move into iOS development by getting a firm grasp of its fundamentals, including the Xcode 9 IDE, Cocoa Touch, and the latest version of Apple’s acclaimed programming language, Swift 4. With this thoroughly updated guide, you’ll learn the Swift language, understand Apple’s Xcode development tools, and discover the Cocoa framework. Explore Swift’s object-oriented concepts Become familiar with built-in Swift types Dive deep into Swift objects, protocols, and generics Tour the lifecycle of an Xcode project Learn how nibs are loaded Understand Cocoa’s event-driven design Communicate with C and Objective-C In this edition, catch up on the latest iOS programming features. Multiline strings and improved dictionaries Object serialization Key paths and key–value observing Expanded git integration Code refactoring And more!