Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Swift Summary | 1,668 | a year ago | 3 | mit | Swift | |||||
A summary of Apple's Swift language written on Playgrounds | ||||||||||
Ios 7 Cookbook | 837 | 5 years ago | 2 | Objective-C | ||||||
Ios 6 Cookbook | 470 | 7 years ago | 2 | Objective-C | ||||||
iOS 6 update | ||||||||||
Ios 6 Advanced Cookbook | 383 | 9 years ago | 3 | Objective-C | ||||||
Recipes for working with the advanced features of iOS 6 | ||||||||||
Nef | 241 | a year ago | 8 | other | Swift | |||||
💊 steroids for Xcode Playgrounds | ||||||||||
Uhooipicbook | 102 | 4 months ago | 67 | mit | Swift | |||||
Uhooi's character book. | ||||||||||
Swiftdevelopmentwithcocoa1sted | 101 | 8 years ago | 4 | Swift | ||||||
Code from our book Swift Development with Cocoa (1st Edition), for O'Reilly Media. | ||||||||||
Flexiblediff | 101 | 5 | 2 years ago | 8 | March 08, 2021 | 2 | other | Swift | ||
A Swift collection diffing μframework. | ||||||||||
Manning Swift In Depth | 87 | 2 years ago | 1 | Swift | ||||||
Source code for Manning's book: Swift in depth | ||||||||||
Swiftui Projects | 72 | 4 months ago | 1 | mit | HTML | |||||
SwiftUI Projects, published by Packt |
Sample code is never a fixed target. It continues to evolve as Apple updates its SDK and the CocoaTouch libraries.
Get involved. You can pitch in by suggesting bug fixes and corrections as well as by expanding the code that's on offer.
Github allows you to fork repositories and grow them with your own tweaks and features, and share those back to the main repository. If you come up with a new idea or approach, let us know. We'd be happy to include great suggestions both at the repository and in the next edition of this cookbook.
That said, if you're new to the platform, this edition of The iOS Developer's Cookbook includes a quick-and-dirty introduction to Objective-C along with an intro to the Xcode Tools to help you quickly get up to speed.
Although each programmer brings different goals and experiences to the table, most iOS developers end up solving similar tasks in their development work:
And so on. If you've asked yourself these questions, then this book is for you. The iOS Developer's Cookbook will get you up to speed and working with the iOS SDK, offering you ready-to-use solutions for the apps you're building today.
It's hard to tell a story when readers must look through 5 or 7 or 9 individual files at once. Offering a single file concentrates that story, allowing access to that idea in a single chunk.
These samples are not intended as stand-alone applications. They are there to demonstrate a single recipe and a single idea. A main.m file with a central presentation reveals the implementation story in one place.
Readers can study these concentrated ideas and transfer them into normal application structures, using the standard file structure and layout. The presentation in this book does not produce code in a day-to-day best practices approach. Instead, it offers concise solutions that you can incorporate back into your work as needed.
Contrast that to Apple's sample code, where you must comb through many files in order to build up a mental model of the concepts that are on-offer. Those samples are built as full applications, often doing tasks that are related to but not essential to what you need to solve, with many distracting flourishes. Finding relevant portions is a lot of work. The effort may outweigh any gains.
There are two exceptions to this one-file rule. First, application-creation walkthroughs use the full file structure created by Xcode to mirror the reality of what you'd expect to build on your own. The walk through folders may therefore contain a dozen or more files at once.
Second, standard implementation and header files are provided when the class itself is the recipe. Instead of highlighting a technique, some recipes offer pre-cooked class implementations and categories (that is, extensions to a pre-existing class, rather than a child class). For those recipes, look for separate .m and .h files in addition to the skeletal main.m that encapsulates the rest of the story.
For the most part, the samples for this book use a single application identifier, com.sadun.helloworld. This book uses one identifier to avoid clogging up your iOS device with dozens of samples at once. Each sample replaces the previous one, ensuring that SpringBoard remains relatively uncluttered. If you want to install several samples at once, simply edit the identifier, adding a unique suffix, such as com.sadun.helloworld.table-edits. You'll want to edit the display name so you can tell instantly which project is which. Samples use the same icons and launch images as well.