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/
The Core iOS 6 Developer’s Cookbook brings together reliable, proven solutions for the heart of day-to-day iOS 6 development. World-renowned iOS programming expert Erica Sadun covers all the classes you’ll need to create successful iOS 6 mobile apps with standard APIs and interface elements and take full advantage of iOS 6 graphics, touches, and views. As in her previous bestselling iOS books, Sadun translates today’s development best practices into working code, distilling key concepts into concise recipes that are easy to understand and transfer into your own projects. This isn’t just cut-and-paste; using her examples, Sadun fully explains both the “how” and “why” of effective iOS 6 development. All code has been fully revised and extensively tested to reflect the latest iOS 6 features and the newest iPhone, iPad, and iPod touch capabilities. Throughout, every chapter groups related tasks together, so you can jump straight to your solution, without having to identify the right class or framework first. Coverage includes Supporting direct user input through multitouch and gestures, including custom gesture recognizers Building, customizing, and using iOS 6 controls Alerting users via popup dialogs, progress bars, local notifications, popovers, audio pings, and other techniques Assembling views and animation, organizing view hierarchies, and understanding how views work together Using iOS 6’s breakthrough autolayout constraints system to simplify support for multiple screen geometries controlling keyboards, making onscreen elements “text aware,” and efficiently scanning and formatting text Using view controllers to organize your users’ workspaces Managing photos, videos, email, text messages, and iOS 6-enhanced social media updates Implementing VoiceOver accessibility to reach even more users Organizing apps simply and intuitively with tables and adding flexibility with iOS 6’s brand new collection views Getting started with Core Data managed data stores Leveraging iOS 6’s powerful networking and web services support
The best place to start iOS application development The Core iOS Developer’s Cookbook provides ready-to-use code solutions for common iOS challenges, providing recipes that help you master the core technology at the heart of iOS. Renowned iOS programming expert Erica Sadun and top iOS developer Rich Wardwell cover the topics you need to create successful mobile applications that take full advantage of iOS graphics, touches, and views. As in all of Sadun’s iOS bestsellers, The Core iOS Developer’s Cookbook translates modern best practices into working code, distilling key concepts into concise recipes you can easily understand and apply to your own projects. This isn’t just cut-and-paste; using examples, Sadun and Wardwell fully explain both the “how” and “why” that underscore effective and successful iOS development. Coverage includes Creating direct touch-based interfaces with multi-touch, gestures, and custom gesture recognizers Building and customizing controls in powerful ways Adding novel motion effects Alerting users via pop-ups, progress bars, local notifications, popovers, audio cues, and more Using Xcode modules to easily integrate system frameworks and headers Assembling views and animation, organizing view hierarchies, and understanding how views work together Supporting multiple screen geometries with the breakthrough Auto Layout constraints system Controlling keyboards, making onscreen elements “text aware,” and efficiently scanning and formatting text Organizing user workspaces with view controllers Managing photos, videos, email, and text messages Leveraging enhanced iOS support for social media activities, including Flickr and Vimeo Implementing VoiceOver accessibility, including text-to-speech Getting started with Core Data-managed data stores Leveraging powerful networking and web services support Using APIs to enhance the user experience
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
Unleash the power of your new iPhone 4S or other iOS 5-driven iPhone and take it to the limit using powerful tips and techniques from the Apple experts at TUAW, Erica Sadun, Steve Sande, and Michael Grothaus. Fast and fun to read, Taking Your iPhone 4S to the Max shows you how to get the most out of your iPhone using Apple’s new iOS 5. Whether you're using the new iPhone 4S or earlier iPhone that runs the new iOS 5, you’ll find all the best undocumented tricks, as well as the most efficient and enjoyable introduction to the iPhone available. Starting with an introduction to iPhone basics, you’ll quickly discover the iPhone’s hidden potential, like how to connect to a TV, use Voice Control using Siri, have video chats with FaceTime, and call friends overseas with low-cost VoIP. From the unified e-mail inbox and surfing the Web with Mobile Safari, exploring the world of social networking, using the multitasking capabilities of iOS 5, taking and editing photos, shopping for apps, media, and books, or just managing phone calls—you’ll find it all in this book. You’ll even learn tips on where to get the best iPhone accessories. Get ready to take your iPhone 4S and earlier running the new iOS 5 to the max!
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.
Over 20 recipes that will enable you to handle and extract data from iOS devices for forensics About This Book This book gets you straight into solving even the most complex iOS forensic problems with easy-to-understand recipes Get to grips with extraction and analysis techniques to perform forensic investigations on iOS devices Gain insights into how to protect your data and perform data recovery from iOS-based devices Who This Book Is For If you are an iOS application developer who wants to learn about a test flight, hockey app integration, and recovery tools, then this book is for you. This book will be helpful for students learning forensics, as well as experienced iOS developers. What You Will Learn Discover the various ways to save data in the document directory of the device Get to grips with encrypting and decrypting of files saved in the document directories Explore ways to integrate social media with iOS applications Grab the user events and actions on the iOS application using analytic tools Analyze useful information from the data gathered in the cloud Grasp numerous concepts associated with air application distribution Track errors in an application effectively to document them for forensic analysis Read crash reports accumulated on iTunesConnect and decode them to generate and gather useful information In Detail Mobile device forensics is a branch of digital forensics that involves the recovery of evidence or data in a digital format from a device without affecting its integrity. With the growing popularity of iOS-based Apple devices, iOS forensics has developed immense importance. To cater to the need, this book deals with tasks such as the encryption and decryption of files, various ways to integrate techniques with social media, and ways to grab the user events and actions on the iOS app. Using practical examples, we'll start with the analysis keychain and raw disk decryption, social media integration, and getting accustomed to analytics tools. You'll also learn how to distribute the iOS apps without releasing them to Apple's App Store. Moving on, the book covers test flights and hockey app integration, the crash reporting system, recovery tools, and their features. By the end of the book, using the aforementioned techniques, you will be able to successfully analyze iOS-based devices forensically. Style and approach This book takes a step-by-step recipe-based approach to iOS forensics and investigation techniques. Topics are explained sequentially in order of complexity, and are accompanied by code and theory that is easy to grasp.
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.
Recipes to create cutting-edge, real-time hybrid mobile apps with Ionic, 3rd Edition
Author: Indermohan Singh
Publisher: Packt Publishing Ltd
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.
If you’re an iOS app developer, chances are you’ll be using table views in your development projects. Table views are the bread and butter of iOS apps. With them, you can create everything from the simplest of lists to fully tricked-out user interfaces. Table views are one of the most complex components found in UIKit. While using them for boring standard user interfaces is quite simple, customizing them can become really challenging. Pro iOS Table Views takes a task-oriented focus to assist you when implementing customized table views. Although it delves deeply into the Table View API, you can always decide in which level of detail you want to dive in. It’s aimed to be a great reference and customization cookbook at the same time, useful for beginners as well as intermediate developers. Covers the entire Table View API in depth Covers customization and performance topics in depth Task-oriented reference with multiple levels of detail Note: source code for this title is currently available for download at: https://github.com/timd/Pro-iOS-TableViews What you’ll learn The anatomy of tables and cells The design patterns that power the table view How to create and configure table views How to customize every last little detail of the table view How to use table views on the iPad Advanced tips and tricks for performance and killer user interfaces The latest updates in iOS 5 and how to exploit them Who this book is for The book is targeted at iOS developers who need to customize Table Views. The information is divided into several layers of detail. While the book covers complex customization topics and user interaction techniques, it provides the fundamental basics needed for customization. Both beginners and intermediate developers will find great value in this book as a helpful reference, at hand to quickly refresh their knowledge at any given time. Table of ContentsPart 1: The background and the basics Chapter 1 Table views from the ground up Chapter 2 How the table fits together Chapter 3 Feeding the table with data Part 2: Working with table content Chapter 4 How the cell fits together Chapter 5 Using tables for navigation and static content Chapter 6 Indexing table content, grouping & sorting table content: Chapter 7 Selecting & editing table content Part 3: Customizing the look and feel Chapter 8 Customizing cells: 12/15 Chapter 9 Customizing cells: 12/22 Chapter 10 Improving the cell’s interaction:12/29 Chapter 11 IPad
Over 50 hands-on recipes to help you efficiently administer and maintain your games with Cocos2d-xAbout This Book• Build exciting games, apps, and other cross-platform GUI based interactive programs with Cocos2d-x• Explore the nitty-gritty of the latest Cocos2d-x on the block, version 3.6• A step-by-step guide that shows you the functionalities of Cocos2d-x followed by an explanation of how they workWho This Book Is ForIf you are a game developer and want to learn more about cross-platform game development in Cocos2d-x, then this book is for you. Knowledge of C++, Xcode, Eclipse, and how to use commands in the terminal are prerequisites for this book.What You Will Learn• Install and set up Cocos2d-x for your development environment• Build, test, and release game applications for iOS and Android• Develop your games for multiple platforms• Customize Cocos2d-x for your games• Use a physical engine in your games• Save and load text, JSON, XML, or other formats• Explore the brand new features of Cocos2d-xIn DetailCocos2d-x is a suite of open source, cross-platform game-development tools used by thousands of developers all over the world. Cocos2d-x is a game framework written in C++, with a thin platform-dependent layer. Completely written in C++, the core engine has the smallest footprint and the fastest speed of any other game engine, and is optimized to be run on all kinds of devices.You will begin with the initial setup and installation of Cocos2d before moving on to the fundamentals needed to create a new project. You will then explore and create the sprites, animations, and actions that you will include in the game. Next you will look at strings and create labels, including a label with True Type Font (TTF) font support.Later, you will learn about layer and scene creation and transition. Then you will create the GUI parts essential for a game, such as buttons and switches. After that, you will breathe life into the game with background music and sound effects using the all new Cocos2d-x audio engine. You will then discover how to manage resource files and implement processes that depend on the operating system.Finally, you will polish your game with physics such as gravity and elevation, learn about tools that will help you make games more robust and stable, and get to know best practices to improve the game you have developed.Style and approachThis book is an easy-to-follow guide with ample recipes to help you better understand Cocos2d-x.