Core Concepts and Essential Recipes for iOS Programmers
Author: Erica Sadun
Publisher: Addison-Wesley Professional
Praise for previous editions of The iPhone Developer’s Cookbook “This book would be a bargain at ten times its price! If you are writing iPhone software, it will save you weeks of development time. Erica has included dozens of crisp and clear examples illustrating essential iPhone development techniques and many others that show special effects going way beyond Apple’s official documentation.” –Tim Burks, iPhone Software Developer, TootSweet Software “Erica Sadun’s technical expertise lives up to the Addison-Wesley name. The iPhone Developer’s Cookbook is a comprehensive walkthrough of iPhone development that will help anyone out, from beginners to more experienced developers. Code samples and screenshots help punctuate the numerous tips and tricks in this book.” –Jacqui Cheng, Associate Editor, Ars Technica “We make our living writing this stuff and yet I am humbled by Erica’s command of her subject matter and the way she presents the material: pleasantly informal, then very appropriately detailed technically. This is a going to be the Petzold book for iPhone developers.” –Daniel Pasco, Lead Developer and CEO, Black Pixel Luminance “ “The iPhone Developer’s Cookbook should be the first resource for the beginning iPhone programmer, and is the best supplemental material to Apple’s own documentation.” –Alex C. Schaefer, Lead Programmer, ApolloIM, iPhone Application Development Specialist, MeLLmo, Inc. “Erica’s book is a truly great resource for Cocoa Touch developers. This book goes far beyond the documentation on Apple’s Web site, and she includes methods that give the developer a deeper understanding of the iPhone OS, by letting them glimpse at what’s going on behind the scenes on this incredible mobile platform.” –John Zorko, Sr. Software Engineer, Mobile Devices “I’ve found this book to be an invaluable resource for those times when I need to quickly grasp a new concept and walk away with a working block of code. Erica has an impressive knowledge of the iPhone platform, is a master at describing technical information, and provides a compendium of excellent code examples.” –John Muchow, 3 Sixty Software, LLC; founder, iPhoneDeveloperTips.com “This book is the most complete guide if you want coding for the iPhone, covering from the basics to the newest and coolest technologies. I built several applications in the past, but I still learned a huge amount from this book. It is a must-have for every iPhone developer.” –Roberto Gamboni, Software Engineer, AT&T Interactive “It’s rare that developer cookbooks can both provide good recipes and solid discussion of fundamental techniques, but Erica Sadun’s book manages to do both very well.” –Jeremy McNally, Developer, entp https://github.com/ http://ericasadun.com/
Provides ready-made code solutions for the iOS 6 development challenges readers are most likely to face, eliminating trial-and-error and helping them build reliable apps from the very beginning. Original.
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
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
Covers iOS 7 and Xcode 5 Apple lavished iOS with a rich and evolving library of resolution-independent 2D drawing utilities. Its APIs include powerful features such as transparency, path-based drawing, anti-aliasing, and more. Harness these low-level, lightweight drawing routines in your apps to build images, to create PDFs, to display views, and to print. In this guide, Erica Sadun, bestselling author of The Core iOS 6 Developer's Cookbook and The Advanced iOS 6 Developer's Cookbook, helps readers explore iOS drawing through an abundance of examples alongside plenty of explanations and tips. This short work provides the basic how-to developers need to get started. You will learn about these specific topics: The basic concepts of Quartz (Core Graphics) and UIKit drawing The coordinate system, paths, masking, and clipping Text drawing Transparency and alpha channels, drawing modes, blending, colors, and spaces Transforms and geometry Patterns, shadows, and gradients Bitmaps and pixels Approximately 311 pages. For related content by author Erica Sadun, see iOS Auto Layout Demystified, The Core iOS 6 Developer’s Cookbook, and The Advanced iOS 6 Developer’s Cookbook. informit.com/sadun To access the code samples, visit https://github.com/erica/iOS-Drawing.
In The Swift Developer’s Cookbook, renowned author Erica Sadun joins powerful strategies with ready-to-use Swift code for solving everyday development challenges. As in all of Sadun’s programming best-sellers, The Swift Developer’s Cookbook translates modern best practices into dozens of well-tested, easy-to-apply solutions. This book’s code examples were created in response to real-world questions from working developers to reflect Swift’s newest capabilities and best practices. Each chapter groups related tasks together. You can jump straight to your solution without having to identify the right class or framework first. Sadun covers key Swift development concepts, shows you how to write robust and efficient code, and helps you avoid common pitfalls other developers struggle with. She offers expert strategies for working with this immensely powerful language, taking into account Swift’s rapid evolution and its migration tools. Whether you’re moving to modern Swift from Objective-C, from older versions of the Swift language, or from the world of non-Apple languages, this guide will help you master both the “how” and “why” of effective Swift development. Industry recruiters are scrambling to find Swift developers who can solve real problems and produce effective working code. Get this book, and you’ll be ready. Coverage includes Writing effective Swift code that communicates clearly and coherently to the compiler, your team, and to “future you,” who will be maintaining this code Using Xcode to handle changes in Swift’s language constructs as the language evolves Building feedback, documentation, and output to meet your development and debugging needs Making the most of optionals and their supporting constructs Using closures to encapsulate state and functionality and treat actions as variables for later execution Leveraging control flow with innovative Swift-specific statements Working with all Swift types: classes, enumerations, and structures Using generics and protocols to build robust code that expands functionality beyond single types Making the most of the powerful Swift error system Working with innovative features such as array indexing, general subscripting, statement labels, custom operators, and more This book is part of the Pearson Content Update Program (CUP). As the technology changes, sections of this book will be updated or new sections will be added. The updates will be delivered to you via a free Web Edition of this book, which can be accessed with any Internet connection.
This book is for developers who are willing to explore iOS game programming in depth. Good knowledge level and understanding of iOS game development will be an added advantage. You should already have a working installation of Xcode and Sprite kit.
This book follows a recipebased approach that will heavily focus on the code and how to integrate the samples with the reader's projects.Each recipe consists of one or more methods that you can put directly into your app and use.This book is ideal for developers that want to create network applications for the Apple OS X or iOS platforms. All examples are written in ObjectiveC using XCode as the IDE. Knowledge of ObjectiveC and XCode is essential.
This book is a standard tutorial aimed at teaching you everything you need to know about iOS app development using Xamarin.This book is written for those who are new to iOS app development as well as more experienced developers who just need a quick reference book. It is assumed that you are already comfortable using C#. Those teaching iOS to new students will also find this book invaluable as a form of reference material.
Discover solutions and best practices to tackle the most common problems while building SwiftUI apps
Author: Giordano Scalzo
Publisher: Packt Publishing Ltd
SwiftUI is an innovative new framework to build UI for all Apple platforms using Swift. This recipe-based guide covers the new features of SwiftUI 2 introduced on iOS14 and helps you migrate from UIkit with a simple learning curve through practical solutions. Learn how SwiftUI combines with Apple dev tools to build truly cross-platform Apple apps.
Develop games for iOS and Android using Cocos2d with the aid of over 70 step-by-step recipes About This Book Learn to efficiently use Cocos2d to develop cross-platform games, and have them work on iOS as well as Android Get acquainted with industry-wide professional tools such as Glyph Designer, Texture Packer, and Physics Editor, as well as using the Swift/ Sprite builder implementation of Cocos2d Use the easy-to-follow recipes to develop as well as deploy games to the Playstore and the App Store Who This Book Is For This book is for intermediate game developers and especially the ones who are generally curious to find out what's new in Cocos2d v 3.3. What You Will Learn Build custom sprites with custom animations for the game Build interactivity into your game by adding gestures and touch interactions Understand AI enemy programming and path finding to make games more exciting Add physics to your game to make it more lively and interactive Get familiar with the Swift and Sprite builder implementations along with Objective-C programming Perform hassle-free deployment of games built in iOS onto Android Add effects and particle systems to make the game more colorful In Detail Cocos2d is the world's leading game development framework for developing iOS games. With the introduction of Swift and Spritebuilder, it has become easier than ever to develop the games of your dreams without much effort. With Cocos2d, you can also deploy the game on Android, thereby maximizing profit and reducing development and porting costs. The book starts off with a detailed look at how to implement sprites and animations into your game to make it livelier. You will then learn to add scenes to the game such as the gameplay scene and options scene and create menus and buttons in these scenes, as well as creating transitions between them. From there on, you will get an understanding of how to program user interactions such as tapping, holding, and swiping. You'll then add accelerometer inputs and physics to the scene, and make objects respond back to the inputs. A game is practically incomplete without audio being added, so this will be covered next. The next section will include ways to add Artificial Intelligence to enemies in the game, allowing them to patrol, chase, and shoot in a projectile manner. You will then learn to use NSUserDefault to save and load game progress, and create and access files using JSON, Plist, and XML files for custom storage and retrieval of data. Then you will learn to add dynamic lighting to your game and will use industry-wide tools such as Texture Packer, Glyph Designer, Physics Editor, Particle Designer, and Sprite Illuminator to create more visually appealing and performance-optimized games. Towards the end of the book, we dive into Apple's latest programming language—Swift, highlighting the major differences between Objective C and Swift. The book culminates with taking your existing game developed for iOS and porting it to Android, showing you how to install the Android Xcode plugin as well. Style and approach The book is written in an extremely lucid and step-by-step manner; it can be understood easily by anyone. The topics included are broken down into individual chapters so you can refer to the specific chapter to get answers on the subject you are interested in.
Over 80 hands-on recipes to unleash full potential for Xamarin in development and monetization of feature-packed, real-world Android apps About This Book Create a number of Android applications using the Xamarin Android platform Extensively integrate your Android devices with other Android devices to enhance your app creation experience A comprehensive guide packed with real-world scenarios and pro-level practices and techniques to help you build successful Android apps Who This Book Is For If you are a Xamarin developer who wants to create complete Android applications with Xamarin, then this book is ideal for you. No prior knowledge of Android development is needed, however a basic knowledge of C# and .NET would be useful. What You Will Learn Install and use Xamarin.Android with Xamarin Studio and Visual Studio Design an app's user interface for multiple device configurations Store and protect data in databases, files, and on the cloud Utilize lists and collections to present data to the user Communicate across the network using NFC or Bluetooth Perform tasks in the background and update the user with notifications Capture and play multimedia, such as video and audio, with the camera Implement In-App Billing and Expansion Files and deploy to the store In Detail Xamarin is used by developers to write native iOS, Android, and Windows apps with native user interfaces and share code across multiple platforms not just on mobile devices, but on Windows, Mac OS X, and Linux. Developing apps with Xamarin.Android allows you to use and re-use your code and your skills on different platforms, making you more productive in any development. Although it's not a write-once-run-anywhere framework, Xamarin provides native platform integration and optimizations. There is no middleware; Xamarin.Android talks directly to the system, taking your C# and F# code directly to the low levels. This book will provide you with the necessary knowledge and skills to be part of the mobile development era using C#. Covering a wide range of recipes such as creating a simple application and using device features effectively, it will be your companion to the complete application development cycle. Starting with installing the necessary tools, you will be guided on everything you need to develop an application ready to be deployed. You will learn the best practices for interacting with the device hardware, such as GPS, NFC, and Bluetooth. Furthermore, you will be able to manage multimedia resources such as photos and videos captured with the device camera, and so much more! By the end of this book, you will be able to create Android apps as a result of learning and implementing pro-level practices, techniques, and solutions. This book will ascertain a seamless and successful app building experience. Style and approach This book employs a step-by-step approach to Android app creation, explained in a conversational and easy-to-follow style. A wide range of examples are listed to ensure a complete understanding of how to deploy competent apps on the Android market.
The book is written in a cookbook style, presenting examples in the style of recipes, allowing you to go directly to your topic of interest, or follow topics throughout a chapter to gain in-depth knowledge. Flash developers or enthusiasts looking to build iOS apps using their existing Flash and ActionScript 3.0 skills.
A recipe-based practical guide to get you up and running with Xamarin cross-platform development About This Book Gain the skills and expertise to create, test, and deploy native mobile applications in the three major mobile app stores that share up to 95% of the same code Learn development techniques that will allow you to use and create custom layouts for each platform, cross-platform UI Gain the knowledge needed to become more efficient in testing, deploying, and monitoring your applications, helping you through all stages of the software development life cycle Who This Book Is For This book is for mobile developers. You must have some basic experience of C# programming, but no previous experience with Xamarin is required. If you are just starting with C# and want to use Xamarin todevelop cross-platform apps effectively and efficiently, then this book is the right choice for you. What You Will Learn Create and customize your cross-platform UI Understand and explore cross-platform patterns and practices Use the out-of-the-box services to support third-party libraries Find out how to get feedback while your application is used by your users Bind collections to ListView and customize its appearance with custom cells Create shared data access using a local SQLite database and a REST service Test and monitor your applications In Detail You can create native mobile applications using the Xamarin Forms platform for the three major platforms iOS, Android, and Windows Phone. The advantage of this is sharing as much code as you can, such as the UI, business logic, data models, SQLite data access, HTTP data access, and file storage across the three major platforms. This book provide recipes on how to create an architecture that will be maintainable, extendable, use Xamarin Forms plugins to boost productivity, customize your views per platforms, and use platform-specific implementations at runtime. We start with a simple creation of a Xamarin Forms solution with the three major platforms. We will then jump to XAML recipes and you will learn how to create a tabbed application page, and customize the style and behavior of views for each platform. Moving on, you will acquire more advanced knowledge and techniques while implementing views and pages for each platform and also calling native UI screens such as the native camera page. Further on, we demonstrate the power of architecting a cross-platform solution and how to share code between platforms, create abstractions, and inject platform-specific implementations. Next, you will utilize and access hardware features that vary from platform to platform with cross-platform techniques. We'll then show you the power of databinding offered by Xamarin Forms and how you can create bindable models and use them in XAML. You will learn how to handle user interactions with the device and take actions in particular events. With all the work done and your application ready, you will master the steps of getting the app ready and publishing it in the app store. Style and approach This book will serve as a quick reference with a unique recipe-based approach that will engage you like never before as you create real-world cross-platform apps on your own.
Create enthralling Android games with Unity Faster Than Ever Before About This Book Develop complex Android games with the help of Unity's advanced features such as artificial intelligence, high-end physics, and GUI transformations. Create amazing Graphical User Interfaces (GUIs) with Unity's new uGUI system Unravel and deploy exciting games across Android devices Who This Book Is For If you are a Unity 5 developer and want to expand your knowledge of Unity 5 to create high-end complex Android games, then this book is for you. Readers are expected to have a basic understanding of Unity 5, working with its environment, and its basic concepts. What You Will Learn Develop your own Jetpack Joyride clone game Explore the advanced features of Unity 5 by building your own Action Fighting game Develop remarkable Graphical User Interfaces (GUIs) with Unity's new uGUI system Enhance your game by adding stunning particle systems and complex animations Build pleasing virtual worlds with special effects, lights, sky cube maps, and cameras Make your game more realistic by providing music and sound effects Debug and deploy your games on different Android devices In Detail Game engines such as Unity are the power-tools behind the games we know and love. Unity is one of the most widely-used and best loved packages for game development and is used by everyone, from hobbyists to large studios, to create games and interactive experiences for the Web, desktop, mobile, and console. With Unity's intuitive, easy-to-learn toolset and this book, it's never been easier to become a game developer. You will begin with the basic concepts of Android game development, a brief history of Android games, the building blocks of Android games in Unity 5, and the basic flow of games. You will configure an empty project for the Jetpack Joyride Clone Game, add an environment and characters, and control them. Next you will walk through topics such as particle systems, camera management, prefabs, animations, triggers, colliders, and basic GUI systems. You will then cover the basic setup for 3D action fighting games, importing models, textures and controlling them with a virtual on-screen joystick. Later you will set up Scene for 3D Configuration, create basic gameplays, and manage input controls. Next you will learn to create the interface for the main menu, gameplay, game over, achievements, and high score screens. Finally you will polish your game with stats, sounds, and Social Networking, followed by testing the game on Android devices and then publishing it on Google Play, Amazon, and OUYA Stores. Style and approach A step-by-step and detailed guide to developing high-end complex Android games utilizing the advanced concepts of Unity.