Pages

Saturday, January 15, 2011

Apple's iOS Samples with summaries

Obviously the mother of all iOS sample sources is the Apple Developer website. The Apple developer samples cover pretty much every aspect of Cocoa Touch development. Every framework, every methodology is covered by this samples. Every iOS developer should know each and every sample project by heart because they demonstrate all the best practices and strategies of iOS development. These samples are also updated regularly so they are current and relevant for the latest iOS SDK.

The List of Apple's iOS Samples with a summary for each sample.
TopPaid
This sample demonstrates how to build a universal application capable of running on both the iPhone and iPad.
Last change: Upgraded to support iOS 4.2 SDK.

UICatalog
This sample is a catalog exhibiting many of the UI elements found in the iOS UIKit framework.
Last change: Upgraded to support 4.2 SDK, Picker page now supports landscape orientation.

AdvancedTableViewCells
AdvancedTableViewCells shows several methods for displaying complex content in UITableViewCells.
Last change: Upgraded to support iOS 4.2 SDK, now using UINib class to help load and instantiate xib-based table view cells.

iAdSuite
Demonstrates how to manage ADBannerViews in three common scenarios.
Last change: Updated for iOS 4.2, changed deprecated content size identifiers, "AdBannerNavigation" sample now shares ad banners across view controllers.

MoveMe
Illustrates simple drawing, touch handling, and animation using UIKit and Core Animation.
Last change: Upgraded to iOS 4.2 SDK, DisplayStrings now included in project, now checking for more GCC warnings.

iPhoneACFileConvertTest
Demonstrates using the Audio Converter to convert PCM audio to a compressed format including AAC if supported.
Last change: New document.

GKTapper
Demonstrates how to implement Leaderboards and Achievements.
Last change: -Fixed bug in how the "submitAchievement:" method handles the "earnedAchievementCache". -Updated Read Me to clarify iTunes Connect's role in GameCenter.

CurrentAddress
Demonstrates basic use of MapKit, displaying a map view and setting its region to current location.
Last change: Upgraded to iOS 4.2 SDK, now using "mapView:didUpdateUserLocation:userLocation" to enable showing the user's address.

avTouch
avTouch demonstrates how to play an audio file using the AVAudioPlayer class.
Last change: audioPlayerDidFinishPlaying should not update meter when in the background.

MessageComposer
demonstrates how to target older OS versions while building with newly released APIs.
Last change: Changed the rainy.png image into a JPEG image, because PNG-optimization made it unreadable on some platforms when sent as an attachment.

iPhoneUnitTests
Illustrates the use of unit tests on an iPhone application project.
Last change: Fixed bugs. Added workaround for running unit tests against the iPhone Simulator in Xcode 3.2.4 with iOS SDK 4.1.

Icons
This sample demonstrates the proper use of application icons on iOS.
Last change: New document.

MVCNetworking
Shows how to create a network application using the Model-View-Controller design pattern
Last change: New document.

WiTap
The WiTap sample application demonstrates how to achieve network communication between applications.
Last change: Updated for iOS 4.1, added IPv6 support, fixed problem causing delayed writes

Popovers
This sample demonstrates proper use of UIPopoverController in iOS.
Last change: New document.

ScrollViewSuite
A series of examples that illustrate how to use UIScrollView.
Last change: Updated 1_TapToZoom to use Interface Builder for UI objects. Removed TapDetectingImageView class since the sample no longer requires it.

aurioTouch
iPhone example to monitor audio input and play it out (duplex audio I/O)
Last change: Updated for iOS 4.1

PageControl
Demonstrates how to display pages of data differently between the iPhone and iPad.
Last change: Updated as a universal application for iPhone and iPad.

PrintWebView
Demonstrates how to print content contained within a web view in iOS 4.2 or later.
Last change: Use the same toolbar autoresizingMask for iPad and iPhone.

DocInteraction
Demonstrates how to use UIDocumentInteractionController to obtain information about documents and how to preview them.
Last change: Fixed Xcode project deployment target to 4.0.

Breadcrumb
Demonstrates how to draw a path using the Map Kit overlay, MKOverlayView, that follows and tracks the user's current location.
Last change: Option kCLLocationAccuracyBestForNavigation turned off by default, sound feedback on location updates added as an option.

PrintPhoto
PrintPhoto demonstrates how to print photos in iOS 4.2 or later.
Last change: New document.

ZoomingPDFViewer
This sample code project demonstrates how to create a PDF viewer using the UIScrollView and CATilerLayer classes.
Last change: New document.

ListAdder
Demonstrates the technique of thread confinement using NSOperation.
Last change: New document.

Table View Animations and Gestures
Shows how to use gesture recognizers and animated update blocks with a table view.
Last change: First public version. * Uses plays and quotations instead of RSS feed. * Uses SectionInfo class instead of struct. * More comments. * Minor user interface changes.

HazardMap
Demonstrates how to create a custom Map Kit overlay to display USGS earthquake hazard data.
Last change: Localized xib files, editorial updates.

KMLViewer
Demonstrate how to display KML files on top of a MKMapView.
Last change: Localized xib files, editorial changes.

PhotoScroller
Demonstrates the use of embedded UIScrollViews and CATiledLayer to create a rich user experience for displaying and paginating photos.
Last change: Added autorotation.

SeismicXML
Demonstrates how to use NSXMLParser to parse XML documents.
Last change: Now using NSOperation to perform the XML parsing.

GLSprite
Shows how to create an OpenGL texture from image data in a Core Graphics bitmap context.
Last change: Upgraded project to build with the iOS 4.0 SDK

GLPaint
Demonstrates how to support single finger painting using OpenGL ES.
Last change: Updated to take into account the view's contentScaleFactor. Updated to draw strictly with premultiplied alpha pixel data.

Audio Mixer (MixerHost)
Demonstrates how to use the Multichannel Mixer audio unit in an iOS application.
Last change: New document.

Audio UI Sounds (SysSound)
Demonstrates how to play short sounds and invoke vibration.
Last change: Upgraded project to build with the iOS 4.0 SDK. Other minor corrections and improvements.

EADemo
Demonstrates use of the ExternalAccesory.framework to communicate with attached MFI device
Last change: Update sample for iOS 4 SDK

PhotoLocations
Illustrates a Core Data application that uses more than one entity and transformable attributes.
Last change: Added UIGraphicsEndImageContext to EventDetailViewController.m. Updated for iOS v4.0.

PhotoPicker
Demonstrates choosing images from the photo library, take a picture with the camera, and how to customize the camera.
Last change: New document.

iPhoneExtAudioFileConvertTest
Demonstrates using the ExtAudioFile API to convert from one audio format and file type to another.
Last change: Upgraded project to build with the iOS 4.0 SDK.

GenericKeychain
An example of how to use Keychain Services on iOS.
Last change: Fixed minor memory leak and upgraded project to build with the iOS 4 SDK.

BatteryStatus
Demonstrates the use of the battery status properties and notifications provided via the iOS SDK.
Last change: Upgraded project to build with the iOS 4.0 SDK.

SimpleNetworkStreams
Demonstrates networking using the NSStream API.
Last change: Updated for iOS 4.0

SimpleURLConnections
Demonstrates simple networking using the NSURLConnection API.
Last change: Updated for iOS 4.0

Reachability
Shows how to monitor network state and host reachability.
Last change: Updated for iOS 4.0

AdvancedURLConnections
Demonstrates various advanced networking techniques with NSURLConnection.
Last change: Updated sample of iOS 4.0

LocateMe
This sample uses CoreLocation to get and track the user's location.
Last change: Updated for iOS 4.0.

SimpleFTPSample
Demonstrates simple FTP operations using the NSURLConnection and CFFTPStream APIs.
Last change: Updated for iOS 4.0.

XMLPerformance
Performance and parsing XML, focusing on speed, memory footprint, and user experience.
Last change: Updated for iOS 4.0

iPhoneMultichannelMixerTest
Demonstrates how to build an Audio Unit Graph using the Multichannel Mixer and Remote I/O units.
Last change: Upgraded project to build with the iOS 4 SDK.

GLES2Sample
This sample demonstrates how to create an OpenGL ES 1.1 and 2.0 compatible project.
Last change: Upgraded project to build with the iOS 4.0 SDK

GLGravity
Demonstrates how to use the UIAccelerometer class in combination with OpenGL ES rendering.
Last change: Upgraded project to build with the iOS 4.0 SDK.

Touches
Demonstrates how to handle multiple touches.
Last change: Changed deployment target back to iOS 3.2 and added CFBundleIconFiles in Info.plist.

WeatherMap
Demonstrates the use of the MapKit, displaying a map view with custom MKAnnotationViews.
Last change: Updated for iOS 4.0.

Formulaic
Demonstrates how to use the iPhone Accessibility API to make an iPhone application accessible.
Last change: Updated project to build with the iOS 4.0 SDK

Locations
Complete implementation of the Locations project from the Your First iPhone Application With Core Data tutorial.
Last change: Added CFBundleIconFiles in Info.plist.

CoreDataBooks
Illustrates use of Core Data in an iPhone application.
Last change: Added CFBundleIconFiles in Info.plist.

oalTouch
iPhone example to play a single audio source using OpenAL.
Last change: Changed deployment target back to iPhone OS 3.2 and added CFBundleIconFiles in Info.plist.

HeaderFooter
Demonstrates how to implement and customize UITableView's header and footer views.
Last change: Added CFBundleIconFiles in Info.plist.

GLImageProcessing
Demonstrates how to implement simple image processing filters using OpenGL ES1.1.
Last change: Added CFBundleIconFiles in Info.plist.

TaggedLocations
This sample illustrates how to manipulate attributes and relationships in an iPhone application.
Last change: Added CFBundleIconFiles in Info.plist.

TouchCells
Demonstrates how to implement trackable-settable UIControls embedded in a UITableView.
Last change: Added CFBundleIconFiles in Info.plist.

AppPrefs
Demonstrates how to display your app's preferences or settings in the "Settings" system application.
Last change: Deployment target set to iPhone OS 3.2.

CopyPasteTile
Demonstrates how to implement copy, cut, and paste in your application.
Last change: Added CFBundleIconFiles in Info.plist.

AQOfflineRenderTest
Demonstrates using Audio Queue offline render functionality using the AudioQueueOfflineRender API.
Last change: Added CFBundleIconFiles in Info.plist.

LazyTableImages
Asynchronously downloads images for a UITableView so the UI is more responsive.
Last change: Deployment target set to iPhone OS 3.2.

ViewTransitions
Demonstrates how to perform transitions between two views using built-in Core Animation transitions.
Last change: Added CFBundleIconFiles in Info.plist.

AccelerometerGraph
Demonstrates how to use the UIAccelerometer class and filter its results.
Last change: Added CFBundleIconFiles in Info.plist.

Teslameter
This application implements a Teslameter, a magnetic field detector.
Last change: Updates to make project compatible with iOS 4.0 SDK

SimpleEKDemo
shows how to use EventKit and EventKitUI frameworks to access and edit calendar data
Last change: New document.

DateSectionTitles
Shows how to create section information for NSFetchedResultsController using dates.
Last change: Changed deployment target back to iPhone OS 3.2 and added CFBundleIconFiles in Info.plist.

QuickContacts
Demonstrates how to use the Address Book UI controllers and various properties.
Last change: Upgraded project to build with the iOS 4.0 SDK.

iPhoneCoreDataRecipes
Shows how you can use view controllers, table views, and Core Data in an iPhone application.
Last change: Deployment target set to iPhone OS 3.2.

GLTextureAtlas
Demonstrates how to use a texture atlas to draw multiple objects with different textures simultaneously.
Last change: Changed deployment target back to iPhone OS 3.2 and added CFBundleIconFiles in Info.plist.

QuartzDemo
Demonstrates many of the Quartz2D APIs made available by the CoreGraphics framework.
Last change: Changed deployment target back to iPhone OS 3.2 and added CFBundleIconFiles in Info.plist.

WorldCities
Demonstrates basic use of MapKit, including displaying a map view and setting its region.
Last change: Upgraded project to build with the iOS 4.0 SDK.

PVRTextureLoader
This application illustrates how to load PVR texture files and then display them using OpenGL.
Last change: Changed deployment target back to iPhone OS 3.2 and added CFBundleIconFiles in Info.plist.

Reflection
This sample shows how to implement a "reflection" special effect on a given UIImageView.
Last change: Changed deployment target back to iPhone OS 3.2 and added CFBundleIconFiles in Info.plist.

MapCallouts
Demonstrates the use of the MapKit framework, displaying a map view with custom MKAnnotations each with custom callouts.
Last change: Updated icons and artwork. Upgraded project to build with the iOS 4 SDK.

iPhoneMixerEQGraphTest
Demonstrates using an AUnit Graph connecting a MultiChannel Mixer to the iPodEQ to the RemoteIO and setting EQ presets.
Last change: Changed deployment target back to iPhone OS 3.2 and added CFBundleIconFiles in Info.plist.

TransWeb
Demonstrates how to implement UIWebView with a transparent background.
Last change: Updated iTunesArtwork.

URLCache
Demonstrates how to download a resource, store it in the data directory, and use the local copy.
Last change: Fixed several minor bugs. Upgraded project to build with iOS 4.0 SDK.

DrillDownSave
Demonstrates how to restore the user's current location in a drill-down list style user interface and restore that location when the app is relaunched.
Last change: Upgraded project to build with the iOS 4.0 SDK.

TableViewSuite
Shows how to use UITableView through a progression of increasingly advanced applications.
Last change: Upgraded project to build with the iOS 4 SDK, fixed NSTimeZoneWrapper parsing bug, replaced use of deprecated "addTimeInterval".

LaunchMe
Demonstrates how to register and service incoming requests of a new URL type.
Last change: Upgraded project to build with the iOS 4.0 SDK.

HelloWorld
Demonstrates how to edit text with a keyboard and how to display the text in a label.
Last change: Upgraded project to build with the iOS 4.0 SDK.

HeadsUpUI
Demonstrates how to implement a headsUp or HUD-like user interface over the app's primary view controller.
Last change: Upgraded project to build with the iOS 4.0 SDK.

WhichWayIsUp
Tracks the orientation of the device.
Last change: Upgraded project to build with the iOS 4.0 SDK.

Accessory
Demonstrates how to implement a custom accessory view for your UITableView in the form of a checkmark button.
Last change: Upgraded project to build with the iOS 4.0 SDK.

TheElements
TheElements is a sample application that provides access to the data contained in the Periodic Table of the Elements.
Last change: Upgraded project to build with the iOS 4.0 SDK.

Scrolling
Demonstrates how to implement two different style UIScrollViews: single image, and multiple images.
Last change: Upgraded project to build with the iOS 4.0 SDK.

NavBar
Demonstrates how to use UINavigationController and UIViewController classes as building blocks to your application's user interface.
Last change: Upgraded project to build with the iOS 4.0 SDK.

SimpleUndo
Illustrates how to use undo on iPhone.
Last change: Upgraded project to build with the iOS 4.0 SDK.

Metronome
Simulates the operation of a simple mechanical metronome.
Last change: Upgraded project to build with the iOS 4.0 SDK.

SimpleDrillDown
Illustrates a simple drill-down application using a UITableView.
Last change: Upgraded project to build with the iOS 4.0 SDK.

AlternateViews
Demonstrates how to implement alternate or distinguishing view controllers for each particular device orientation.
Last change: Upgraded project to build with the iOS 4.0 SDK.

MusicCube
Demonstrates basic use of OpenGL ES, OpenAL, and Audio File Services for manipulating sound in a 3D environment.
Last change: Upgraded project to build with the iOS 4.0 SDK.

MailComposer
Demonstrates how to target older OS versions while building with newly released APIs.
Last change: Upgraded project to build with the iOS 4.0 SDK.

DateCell
Demonstrates formatted display of date objects in UITableViewCells and using UIDatePicker to edit those values.
Last change: Upgraded project to build with the iOS 4 SDK.

TopSongs
Demonstrates importing data from an RSS feed into a Core Data store.
Last change: Upgraded project to build with the iOS 4 SDK.

TableSearch
Demonstrates how to search contents of a UITableView using UISearchBar and UISearchDisplayController.
Last change: Upgraded project to build with the iOS 4 SDK.

International Mountains
This sample demonstrates ways to incorporate and manage localized data in an iPhone application.
Last change: Updates to make project compatible with iOS 4.0 SDK

BubbleLevel
Simulates the operation of a simple, physical bubble level.
Last change: Updates to make project compatible with iOS 4.0 SDK

BonjourWeb
Shows how to find network services that are advertised by Bonjour.
Last change: Updated to work with iOS SDK 4.0.

SimpleGestureRecognizers
Shows how to use standard gesture recognizers.
Last change: Added localization support; viewDidUnload now releases IBOutlets.

MultipleDetailViews
Illustrates how to use a split view controller with multiple detail views.
Last change: Added localization support; viewDidUnload now releases IBOutlets.

Trailers
Dashcode Project containing a Trailer web application built using bindings and data sources.
Last change: Updated data source URL.

ToolbarSearch
Shows how to use a search field in a toolbar and present a list of recent searches in a popover.
Last change: viewDidUnload now releases IBOutlets, added localization support, fixed rotation layout bug.

KeyboardAccessory
Shows how to use a keyboard accessory view.
Last change: viewDidUnload now releases IBOutlets, added localization support.

GKRocket
Demonstrates the use of GKSession and GKVoiceChatService in a simple networked game.
Last change: New document.

FastEnumerationSample
Demonstrates how to implement the NSFastEnumeration protocol.
Last change: New document.

AddMusic
Demonstrates how to play audio items that are synced from a user's desktop iTunes library.
Last change: Minor changes.

SpeakHere
Demonstrates iPhone recording and playback using the Audio Toolbox framework.
Last change: Add support for pausing playback when headphones are removed

GKTank
Sample application demonstrating Peer-to-Peer Connectivity using GameKit framework.
Last change: Minor edits.

CryptoExercise
Highlights the Cryptographic APIs found in the Security framework and CommonCrypto for the iPhone OS SDK
Last change: Adopted iPhone OS 3.0 UITableView and UITableViewCell APIs. Added check for availability of WiFi network. Made minor bug fix in hash computation.

MoviePlayer
Demonstrates how to use the Media Player framework to play a movie full-screen.
Last change: Added support for receiving streaming audio and video over HTTP.

No comments:

Post a Comment

Post a Comment

Popular Posts