├── ch05 ├── Swap │ ├── Swap │ │ ├── en.lproj │ │ │ └── InfoPlist.strings │ │ ├── main.m │ │ ├── BIDAppDelegate.h │ │ ├── Swap-Prefix.pch │ │ ├── BIDViewController.h │ │ └── Swap-Info.plist │ └── Swap.xcodeproj │ │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── Autosize │ ├── Autosize │ │ ├── en.lproj │ │ │ └── InfoPlist.strings │ │ ├── BIDViewController.h │ │ ├── main.m │ │ ├── BIDAppDelegate.h │ │ ├── Autosize-Prefix.pch │ │ └── BIDViewController.m │ └── Autosize.xcodeproj │ │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── Restructure │ ├── Restructure │ │ ├── en.lproj │ │ │ └── InfoPlist.strings │ │ ├── main.m │ │ ├── BIDAppDelegate.h │ │ ├── Restructure-Prefix.pch │ │ └── BIDViewController.h │ └── Restructure.xcodeproj │ │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── Orientations │ ├── Orientations │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── BIDViewController.h │ ├── main.m │ ├── BIDAppDelegate.h │ ├── Orientations-Prefix.pch │ └── BIDViewController.m │ └── Orientations.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch08 - Cells ├── Cells │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── BIDViewController.h │ ├── main.m │ ├── BIDAppDelegate.h │ ├── Cells-Prefix.pch │ ├── BIDNameAndColorCell.h │ ├── BIDAppDelegate.m │ └── Cells-Info.plist └── Cells.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch09 - Nav ├── Nav │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── BIDSecondLevelViewController.m │ ├── BIDAppDelegate.h │ ├── BIDSecondLevelViewController.h │ ├── BIDFirstLevelViewController.h │ ├── BIDMoveMeViewController.h │ ├── BIDDeleteMeViewController.h │ ├── main.m │ ├── BIDDisclosureDetailViewController.h │ ├── BIDCheckListViewController.h │ ├── BIDRowControlsViewController.h │ ├── Nav-Prefix.pch │ ├── BIDPresidentsViewController.h │ ├── BIDDisclosureButtonViewController.h │ ├── BIDPresident.h │ ├── BIDDisclosureDetailViewController.m │ ├── BIDAppDelegate.m │ ├── BIDPresidentDetailViewController.h │ └── Nav-Info.plist ├── Presidents.plist ├── Images │ ├── button_up.png │ ├── button_down.png │ ├── deleteMeIcon.png │ ├── moveMeIcon.png │ ├── detailEditIcon.png │ ├── rowControlsIcon.png │ ├── checkmarkControllerIcon.png │ └── disclosureButtonControllerIcon.png └── Nav.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch19 - Ball ├── Ball │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── BIDViewController.h │ ├── main.m │ ├── BIDAppDelegate.h │ ├── Ball-Prefix.pch │ ├── BIDBallView.h │ ├── BIDAppDelegate.m │ └── Ball-Info.plist ├── ball.png └── Ball.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch07 - Pickers ├── Pickers │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── main.m │ ├── BIDDatePickerViewController.h │ ├── BIDAppDelegate.h │ ├── Pickers-Prefix.pch │ ├── BIDSingleComponentPickerViewController.h │ ├── BIDCustomPickerViewController.h │ ├── BIDDoubleComponentPickerViewController.h │ ├── BIDDependentComponentPickerViewController.h │ ├── BIDAppDelegate.m │ └── BIDDatePickerViewController.m ├── Tab Bar Icons │ ├── toolicon.png │ ├── clockicon.png │ ├── doubleicon.png │ ├── singleicon.png │ └── dependenticon.png ├── Custom Picker Images │ ├── bar.png │ ├── apple.png │ ├── cherry.png │ ├── crown.png │ ├── lemon.png │ └── seven.png ├── Custom Picker Sounds │ ├── win.wav │ └── crunch.wav └── Pickers.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch10 ├── Seg Nav │ ├── Seg Nav │ │ ├── en.lproj │ │ │ └── InfoPlist.strings │ │ ├── BIDRootViewController.h │ │ ├── BIDTaskListController.h │ │ ├── BIDAppDelegate.h │ │ ├── main.m │ │ ├── BIDTaskDetailController.h │ │ └── Seg Nav-Prefix.pch │ └── Seg Nav.xcodeproj │ │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── Simple Storyboard │ ├── Simple Storyboard │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── BIDViewController.h │ ├── BIDTaskListController.h │ ├── BIDAppDelegate.h │ ├── main.m │ ├── BIDStaticCellsController.h │ ├── Simple Storyboard-Prefix.pch │ └── BIDViewController.m │ └── Simple Storyboard.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch14 └── TinyPix │ ├── TinyPix │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── BIDAppDelegate.h │ ├── main.m │ ├── BIDTinyPixView.h │ ├── BIDMasterViewController.h │ ├── TinyPix-Prefix.pch │ ├── BIDDetailViewController.h │ ├── BIDTinyPixDocument.h │ └── TinyPix.entitlements │ └── TinyPix.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch16 ├── GLFun │ ├── QuartzFun │ │ ├── en.lproj │ │ │ └── InfoPlist.strings │ │ ├── iphone.png │ │ ├── Default.png │ │ ├── Default@2x.png │ │ ├── Default-568h@2x.png │ │ ├── UIColor+BIDRandom.h │ │ ├── main.m │ │ ├── ViewController.h │ │ ├── AppDelegate.h │ │ ├── GLFun-Prefix.pch │ │ ├── BIDGLFunView.h │ │ ├── BIDConstants.h │ │ ├── UIColor+BIDRandom.m │ │ └── OpenGLES2DView.h │ └── GLFun.xcodeproj │ │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── QuartzFun │ ├── QuartzFun │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── iphone.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── UIColor+BIDRandom.h │ ├── main.m │ ├── ViewController.h │ ├── AppDelegate.h │ ├── QuartzFun-Prefix.pch │ ├── BIDConstants.h │ ├── BIDQuartzFunView.h │ └── UIColor+BIDRandom.m │ └── QuartzFun.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch17 - PinchMe ├── PinchMe │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── BIDViewController.h │ ├── main.m │ ├── BIDAppDelegate.h │ ├── PinchMe-Prefix.pch │ └── BIDAppDelegate.m ├── yosemite-meadows.png └── PinchMe.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch17 - Swipes1 ├── Swipes │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── BIDViewController.h │ ├── main.m │ ├── BIDAppDelegate.h │ ├── Swipes-Prefix.pch │ └── BIDAppDelegate.m └── Swipes.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch17 - Swipes2 ├── Swipes │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── BIDViewController.h │ ├── main.m │ ├── BIDAppDelegate.h │ ├── Swipes-Prefix.pch │ └── BIDAppDelegate.m └── Swipes.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch17 - TapTaps ├── TapTaps │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── main.m │ ├── BIDAppDelegate.h │ ├── TapTaps-Prefix.pch │ ├── BIDViewController.h │ └── BIDAppDelegate.m └── TapTaps.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch18 └── WhereAmI │ ├── WhereAmI │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── BIDPlace.m │ ├── main.m │ ├── BIDAppDelegate.h │ ├── BIDPlace.h │ ├── WhereAmI-Prefix.pch │ └── BIDViewController.h │ └── WhereAmI.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch20 - Camera ├── Camera │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── main.m │ ├── BIDAppDelegate.h │ ├── Camera-Prefix.pch │ ├── BIDViewController.h │ └── BIDAppDelegate.m └── Camera.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch02 └── Hello World │ ├── Hello World │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── BIDViewController.h │ ├── main.m │ ├── BIDAppDelegate.h │ ├── Hello World-Prefix.pch │ └── BIDViewController.m │ ├── icon.png │ ├── icon@2x.png │ └── Hello World.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch03 └── Button Fun │ ├── Button Fun │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── BIDViewController.h │ ├── main.m │ ├── BIDAppDelegate.h │ ├── Button Fun-Prefix.pch │ └── BIDViewController.m │ └── Button Fun.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch04 └── Control Fun │ ├── Control Fun │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── apress_logo.png │ ├── blueButton.png │ ├── whiteButton.png │ ├── main.m │ ├── BIDAppDelegate.h │ ├── Control Fun-Prefix.pch │ └── BIDViewController.h │ └── Control Fun.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch08 - Sections ├── Sections │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── main.m │ ├── BIDAppDelegate.h │ ├── BIDViewController.h │ ├── Sections-Prefix.pch │ └── BIDAppDelegate.m └── Sections.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch11 - Presidents ├── Presidents │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── BIDAppDelegate.h │ ├── main.m │ ├── BIDMasterViewController.h │ ├── Presidents-Prefix.pch │ ├── BIDLanguageListController.h │ ├── BIDDetailViewController.h │ └── BIDAppDelegate.m └── Presidents.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch12 └── AppSettings │ ├── AppSettings │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── rabbit.png │ ├── turtle.png │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── Settings.bundle │ │ ├── rabbit.png │ │ ├── turtle.png │ │ └── en.lproj │ │ │ └── Root.strings │ ├── BIDAppDelegate.h │ ├── main.m │ ├── AppSettings-Prefix.pch │ └── BIDFlipsideViewController.h │ ├── Icon.png │ └── AppSettings.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch15 - SlowWorker ├── SlowWorker │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── main.m │ ├── BIDAppDelegate.h │ ├── SlowWorker-Prefix.pch │ ├── BIDViewController.h │ └── BIDAppDelegate.m └── SlowWorker.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch15 - State Lab ├── State Lab │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── main.m │ ├── BIDAppDelegate.h │ ├── State Lab-Prefix.pch │ └── BIDViewController.h ├── smiley.png └── State Lab.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch06 └── View Switcher │ ├── View Switcher │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── BIDBlueViewController.h │ ├── BIDYellowViewController.h │ ├── main.m │ ├── BIDAppDelegate.h │ ├── View Switcher-Prefix.pch │ ├── BIDSwitchViewController.h │ ├── BIDBlueViewController.m │ └── BIDYellowViewController.m │ └── View Switcher.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch08 - Simple Table ├── Simple Table │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── star.png │ ├── star2.png │ ├── BIDViewController.h │ ├── main.m │ ├── BIDAppDelegate.h │ ├── Simple Table-Prefix.pch │ └── BIDAppDelegate.m └── Simple Table.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch13 - Persistence ├── Persistence │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── BIDFourLines.h │ ├── BIDViewController.h │ ├── main.m │ ├── BIDAppDelegate.h │ ├── Persistence-Prefix.pch │ ├── BIDAppDelegate.m │ └── BIDFourLines.m └── Persistence.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch17 - CheckPlease ├── CheckPlease │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── BIDCheckMarkRecognizer.h │ ├── BIDViewController.h │ ├── main.m │ ├── BIDAppDelegate.h │ ├── CheckPlease-Prefix.pch │ ├── BIDAppDelegate.m │ └── BIDViewController.m ├── CheckPlease.xcodeproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── CGPointUtils.h └── CGPointUtils.c ├── ch21 └── DialogViewer │ ├── DialogViewer │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── BIDHeaderCell.h │ ├── BIDViewController.h │ ├── main.m │ ├── BIDContentCell.h │ ├── BIDAppDelegate.h │ ├── DialogViewer-Prefix.pch │ └── BIDHeaderCell.m │ └── DialogViewer.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch22 - LocalizeMe2 ├── LocalizeMe │ ├── en.lproj │ │ ├── InfoPlist.strings │ │ ├── flag.png │ │ └── BIDViewController.strings │ ├── fr.lproj │ │ ├── InfoPlist.strings │ │ ├── flag.png │ │ └── BIDViewController.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── main.m │ ├── BIDViewController.h │ ├── BIDAppDelegate.h │ ├── LocalizeMe-Prefix.pch │ ├── BIDAppDelegate.m │ └── BIDViewController.m ├── Images │ ├── French │ │ └── flag.png │ └── English │ │ └── flag.png ├── en.lproj │ └── Localizable.strings ├── fr.lproj │ └── Localizable.strings └── LocalizeMe.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch17 - TouchExplorer ├── TouchExplorer │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── main.m │ ├── BIDAppDelegate.h │ ├── TouchExplorer-Prefix.pch │ ├── BIDViewController.h │ └── BIDAppDelegate.m └── TouchExplorer.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch19 - MotionMonitor1 ├── MotionMonitor │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── main.m │ ├── BIDViewController.h │ ├── BIDAppDelegate.h │ ├── MotionMonitor-Prefix.pch │ ├── BIDAppDelegate.m │ └── MotionMonitor-Info.plist └── MotionMonitor.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch19 - MotionMonitor2 ├── MotionMonitor │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── main.m │ ├── BIDViewController.h │ ├── BIDAppDelegate.h │ ├── MotionMonitor-Prefix.pch │ └── MotionMonitor-Info.plist └── MotionMonitor.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch19 - ShakeAndBreak ├── ShakeAndBreak │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── BIDViewController.h │ ├── main.m │ ├── BIDAppDelegate.h │ ├── ShakeAndBreak-Prefix.pch │ └── BIDAppDelegate.m ├── home.png ├── icon.png ├── glass.wav ├── homebroken.png └── ShakeAndBreak.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch13 - Core Data Peristence ├── Core Data Peristence │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── BIDViewController.h │ ├── main.m │ ├── Core_Data_Peristence.xcdatamodeld │ │ ├── .xccurrentversion │ │ └── Core_Data_Peristence.xcdatamodel │ │ │ └── contents │ ├── Core Data Peristence-Prefix.pch │ └── BIDAppDelegate.h └── Core Data Peristence.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch13 - SQLite Persistence ├── SQLite Persistence │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── BIDViewController.h │ ├── main.m │ ├── BIDAppDelegate.h │ ├── SQLite Persistence-Prefix.pch │ └── BIDAppDelegate.m └── SQLite Persistence.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── ch19 - ShakeAndBreak - Motion Methods ├── ShakeAndBreak │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── BIDViewController.h │ ├── main.m │ ├── BIDAppDelegate.h │ ├── ShakeAndBreak-Prefix.pch │ └── BIDAppDelegate.m ├── home.png ├── icon.png ├── glass.wav ├── homebroken.png └── ShakeAndBreak.xcodeproj │ └── project.xcworkspace │ └── contents.xcworkspacedata └── ch22 - LocalizeMe ├── Images ├── English │ └── flag.png └── French │ └── flag.png ├── LocalizeMe ├── Default.png ├── Default@2x.png ├── en.lproj │ ├── InfoPlist.strings │ └── flag.png ├── fr.lproj │ ├── InfoPlist.strings │ └── flag.png ├── Default-568h@2x.png ├── main.m ├── BIDViewController.h ├── BIDAppDelegate.h ├── LocalizeMe-Prefix.pch ├── BIDAppDelegate.m └── BIDViewController.m ├── en.lproj └── Localizable.strings ├── fr.lproj └── Localizable.strings └── LocalizeMe.xcodeproj └── project.xcworkspace └── contents.xcworkspacedata /ch05/Swap/Swap/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch08 - Cells/Cells/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch19 - Ball/Ball/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch05/Autosize/Autosize/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch07 - Pickers/Pickers/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch10/Seg Nav/Seg Nav/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch14/TinyPix/TinyPix/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch16/GLFun/QuartzFun/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch17 - PinchMe/PinchMe/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch17 - Swipes1/Swipes/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch17 - Swipes2/Swipes/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch17 - TapTaps/TapTaps/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch18/WhereAmI/WhereAmI/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch19 - Ball/ball.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - Ball/ball.png -------------------------------------------------------------------------------- /ch20 - Camera/Camera/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch02/Hello World/Hello World/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch03/Button Fun/Button Fun/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch04/Control Fun/Control Fun/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch05/Restructure/Restructure/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch08 - Sections/Sections/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch11 - Presidents/Presidents/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch12/AppSettings/AppSettings/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch15 - SlowWorker/SlowWorker/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch15 - State Lab/State Lab/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch16/QuartzFun/QuartzFun/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch02/Hello World/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch02/Hello World/icon.png -------------------------------------------------------------------------------- /ch05/Orientations/Orientations/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch06/View Switcher/View Switcher/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch08 - Simple Table/Simple Table/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch09 - Nav/Nav/Default.png -------------------------------------------------------------------------------- /ch12/AppSettings/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch12/AppSettings/Icon.png -------------------------------------------------------------------------------- /ch13 - Persistence/Persistence/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch17 - CheckPlease/CheckPlease/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch21/DialogViewer/DialogViewer/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/LocalizeMe/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/LocalizeMe/fr.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch02/Hello World/icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch02/Hello World/icon@2x.png -------------------------------------------------------------------------------- /ch09 - Nav/Nav/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch09 - Nav/Nav/Default@2x.png -------------------------------------------------------------------------------- /ch09 - Nav/Presidents.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch09 - Nav/Presidents.plist -------------------------------------------------------------------------------- /ch15 - State Lab/smiley.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch15 - State Lab/smiley.png -------------------------------------------------------------------------------- /ch17 - TouchExplorer/TouchExplorer/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch19 - Ball/Ball/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - Ball/Ball/Default.png -------------------------------------------------------------------------------- /ch19 - MotionMonitor1/MotionMonitor/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch19 - MotionMonitor2/MotionMonitor/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak/ShakeAndBreak/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - ShakeAndBreak/home.png -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - ShakeAndBreak/icon.png -------------------------------------------------------------------------------- /ch09 - Nav/Images/button_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch09 - Nav/Images/button_up.png -------------------------------------------------------------------------------- /ch10/Simple Storyboard/Simple Storyboard/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch16/GLFun/QuartzFun/iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch16/GLFun/QuartzFun/iphone.png -------------------------------------------------------------------------------- /ch19 - Ball/Ball/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - Ball/Ball/Default@2x.png -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak/glass.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - ShakeAndBreak/glass.wav -------------------------------------------------------------------------------- /ch09 - Nav/Images/button_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch09 - Nav/Images/button_down.png -------------------------------------------------------------------------------- /ch09 - Nav/Images/deleteMeIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch09 - Nav/Images/deleteMeIcon.png -------------------------------------------------------------------------------- /ch09 - Nav/Images/moveMeIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch09 - Nav/Images/moveMeIcon.png -------------------------------------------------------------------------------- /ch09 - Nav/Nav/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch09 - Nav/Nav/Default-568h@2x.png -------------------------------------------------------------------------------- /ch13 - Core Data Peristence/Core Data Peristence/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch13 - SQLite Persistence/SQLite Persistence/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch14/TinyPix/TinyPix/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch14/TinyPix/TinyPix/Default.png -------------------------------------------------------------------------------- /ch16/GLFun/QuartzFun/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch16/GLFun/QuartzFun/Default.png -------------------------------------------------------------------------------- /ch17 - PinchMe/PinchMe/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - PinchMe/PinchMe/Default.png -------------------------------------------------------------------------------- /ch17 - Swipes1/Swipes/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - Swipes1/Swipes/Default.png -------------------------------------------------------------------------------- /ch17 - Swipes2/Swipes/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - Swipes2/Swipes/Default.png -------------------------------------------------------------------------------- /ch17 - TapTaps/TapTaps/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - TapTaps/TapTaps/Default.png -------------------------------------------------------------------------------- /ch18/WhereAmI/WhereAmI/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch18/WhereAmI/WhereAmI/Default.png -------------------------------------------------------------------------------- /ch20 - Camera/Camera/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch20 - Camera/Camera/Default.png -------------------------------------------------------------------------------- /ch09 - Nav/Images/detailEditIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch09 - Nav/Images/detailEditIcon.png -------------------------------------------------------------------------------- /ch14/TinyPix/TinyPix/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch14/TinyPix/TinyPix/Default@2x.png -------------------------------------------------------------------------------- /ch16/GLFun/QuartzFun/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch16/GLFun/QuartzFun/Default@2x.png -------------------------------------------------------------------------------- /ch16/QuartzFun/QuartzFun/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch16/QuartzFun/QuartzFun/Default.png -------------------------------------------------------------------------------- /ch16/QuartzFun/QuartzFun/iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch16/QuartzFun/QuartzFun/iphone.png -------------------------------------------------------------------------------- /ch17 - PinchMe/yosemite-meadows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - PinchMe/yosemite-meadows.png -------------------------------------------------------------------------------- /ch17 - Swipes1/Swipes/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - Swipes1/Swipes/Default@2x.png -------------------------------------------------------------------------------- /ch17 - Swipes2/Swipes/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - Swipes2/Swipes/Default@2x.png -------------------------------------------------------------------------------- /ch19 - Ball/Ball/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - Ball/Ball/Default-568h@2x.png -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak - Motion Methods/ShakeAndBreak/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak/homebroken.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - ShakeAndBreak/homebroken.png -------------------------------------------------------------------------------- /ch20 - Camera/Camera/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch20 - Camera/Camera/Default@2x.png -------------------------------------------------------------------------------- /ch09 - Nav/Images/rowControlsIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch09 - Nav/Images/rowControlsIcon.png -------------------------------------------------------------------------------- /ch12/AppSettings/AppSettings/rabbit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch12/AppSettings/AppSettings/rabbit.png -------------------------------------------------------------------------------- /ch12/AppSettings/AppSettings/turtle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch12/AppSettings/AppSettings/turtle.png -------------------------------------------------------------------------------- /ch15 - State Lab/State Lab/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch15 - State Lab/State Lab/Default.png -------------------------------------------------------------------------------- /ch16/QuartzFun/QuartzFun/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch16/QuartzFun/QuartzFun/Default@2x.png -------------------------------------------------------------------------------- /ch17 - PinchMe/PinchMe/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - PinchMe/PinchMe/Default@2x.png -------------------------------------------------------------------------------- /ch17 - TapTaps/TapTaps/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - TapTaps/TapTaps/Default@2x.png -------------------------------------------------------------------------------- /ch18/WhereAmI/WhereAmI/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch18/WhereAmI/WhereAmI/Default@2x.png -------------------------------------------------------------------------------- /ch07 - Pickers/Tab Bar Icons/toolicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch07 - Pickers/Tab Bar Icons/toolicon.png -------------------------------------------------------------------------------- /ch08 - Simple Table/Simple Table/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch08 - Simple Table/Simple Table/star.png -------------------------------------------------------------------------------- /ch11 - Presidents/Presidents/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch11 - Presidents/Presidents/Default.png -------------------------------------------------------------------------------- /ch12/AppSettings/AppSettings/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch12/AppSettings/AppSettings/Default.png -------------------------------------------------------------------------------- /ch14/TinyPix/TinyPix/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch14/TinyPix/TinyPix/Default-568h@2x.png -------------------------------------------------------------------------------- /ch15 - SlowWorker/SlowWorker/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch15 - SlowWorker/SlowWorker/Default.png -------------------------------------------------------------------------------- /ch15 - State Lab/State Lab/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch15 - State Lab/State Lab/Default@2x.png -------------------------------------------------------------------------------- /ch16/GLFun/QuartzFun/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch16/GLFun/QuartzFun/Default-568h@2x.png -------------------------------------------------------------------------------- /ch17 - Swipes1/Swipes/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - Swipes1/Swipes/Default-568h@2x.png -------------------------------------------------------------------------------- /ch17 - Swipes2/Swipes/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - Swipes2/Swipes/Default-568h@2x.png -------------------------------------------------------------------------------- /ch20 - Camera/Camera/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch20 - Camera/Camera/Default-568h@2x.png -------------------------------------------------------------------------------- /ch22 - LocalizeMe/Images/English/flag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch22 - LocalizeMe/Images/English/flag.png -------------------------------------------------------------------------------- /ch22 - LocalizeMe/Images/French/flag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch22 - LocalizeMe/Images/French/flag.png -------------------------------------------------------------------------------- /ch22 - LocalizeMe/LocalizeMe/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch22 - LocalizeMe/LocalizeMe/Default.png -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/Images/French/flag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch22 - LocalizeMe2/Images/French/flag.png -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/LocalizeMe/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch22 - LocalizeMe2/LocalizeMe/Default.png -------------------------------------------------------------------------------- /ch04/Control Fun/Control Fun/apress_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch04/Control Fun/Control Fun/apress_logo.png -------------------------------------------------------------------------------- /ch04/Control Fun/Control Fun/blueButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch04/Control Fun/Control Fun/blueButton.png -------------------------------------------------------------------------------- /ch04/Control Fun/Control Fun/whiteButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch04/Control Fun/Control Fun/whiteButton.png -------------------------------------------------------------------------------- /ch07 - Pickers/Custom Picker Images/bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch07 - Pickers/Custom Picker Images/bar.png -------------------------------------------------------------------------------- /ch07 - Pickers/Custom Picker Sounds/win.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch07 - Pickers/Custom Picker Sounds/win.wav -------------------------------------------------------------------------------- /ch07 - Pickers/Tab Bar Icons/clockicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch07 - Pickers/Tab Bar Icons/clockicon.png -------------------------------------------------------------------------------- /ch07 - Pickers/Tab Bar Icons/doubleicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch07 - Pickers/Tab Bar Icons/doubleicon.png -------------------------------------------------------------------------------- /ch07 - Pickers/Tab Bar Icons/singleicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch07 - Pickers/Tab Bar Icons/singleicon.png -------------------------------------------------------------------------------- /ch08 - Simple Table/Simple Table/star2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch08 - Simple Table/Simple Table/star2.png -------------------------------------------------------------------------------- /ch11 - Presidents/Presidents/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch11 - Presidents/Presidents/Default@2x.png -------------------------------------------------------------------------------- /ch12/AppSettings/AppSettings/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch12/AppSettings/AppSettings/Default@2x.png -------------------------------------------------------------------------------- /ch13 - Persistence/Persistence/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch13 - Persistence/Persistence/Default.png -------------------------------------------------------------------------------- /ch15 - SlowWorker/SlowWorker/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch15 - SlowWorker/SlowWorker/Default@2x.png -------------------------------------------------------------------------------- /ch16/QuartzFun/QuartzFun/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch16/QuartzFun/QuartzFun/Default-568h@2x.png -------------------------------------------------------------------------------- /ch17 - CheckPlease/CheckPlease/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - CheckPlease/CheckPlease/Default.png -------------------------------------------------------------------------------- /ch17 - PinchMe/PinchMe/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - PinchMe/PinchMe/Default-568h@2x.png -------------------------------------------------------------------------------- /ch17 - TapTaps/TapTaps/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - TapTaps/TapTaps/Default-568h@2x.png -------------------------------------------------------------------------------- /ch18/WhereAmI/WhereAmI/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch18/WhereAmI/WhereAmI/Default-568h@2x.png -------------------------------------------------------------------------------- /ch21/DialogViewer/DialogViewer/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch21/DialogViewer/DialogViewer/Default.png -------------------------------------------------------------------------------- /ch22 - LocalizeMe/LocalizeMe/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch22 - LocalizeMe/LocalizeMe/Default@2x.png -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/Images/English/flag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch22 - LocalizeMe2/Images/English/flag.png -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/LocalizeMe/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch22 - LocalizeMe2/LocalizeMe/Default@2x.png -------------------------------------------------------------------------------- /ch07 - Pickers/Custom Picker Images/apple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch07 - Pickers/Custom Picker Images/apple.png -------------------------------------------------------------------------------- /ch07 - Pickers/Custom Picker Images/cherry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch07 - Pickers/Custom Picker Images/cherry.png -------------------------------------------------------------------------------- /ch07 - Pickers/Custom Picker Images/crown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch07 - Pickers/Custom Picker Images/crown.png -------------------------------------------------------------------------------- /ch07 - Pickers/Custom Picker Images/lemon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch07 - Pickers/Custom Picker Images/lemon.png -------------------------------------------------------------------------------- /ch07 - Pickers/Custom Picker Images/seven.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch07 - Pickers/Custom Picker Images/seven.png -------------------------------------------------------------------------------- /ch07 - Pickers/Custom Picker Sounds/crunch.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch07 - Pickers/Custom Picker Sounds/crunch.wav -------------------------------------------------------------------------------- /ch07 - Pickers/Tab Bar Icons/dependenticon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch07 - Pickers/Tab Bar Icons/dependenticon.png -------------------------------------------------------------------------------- /ch09 - Nav/Images/checkmarkControllerIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch09 - Nav/Images/checkmarkControllerIcon.png -------------------------------------------------------------------------------- /ch13 - Persistence/Persistence/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch13 - Persistence/Persistence/Default@2x.png -------------------------------------------------------------------------------- /ch15 - State Lab/State Lab/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch15 - State Lab/State Lab/Default-568h@2x.png -------------------------------------------------------------------------------- /ch17 - CheckPlease/CheckPlease/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - CheckPlease/CheckPlease/Default@2x.png -------------------------------------------------------------------------------- /ch17 - TouchExplorer/TouchExplorer/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - TouchExplorer/TouchExplorer/Default.png -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak - Motion Methods/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - ShakeAndBreak - Motion Methods/home.png -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak - Motion Methods/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - ShakeAndBreak - Motion Methods/icon.png -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak/ShakeAndBreak/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - ShakeAndBreak/ShakeAndBreak/Default.png -------------------------------------------------------------------------------- /ch21/DialogViewer/DialogViewer/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch21/DialogViewer/DialogViewer/Default@2x.png -------------------------------------------------------------------------------- /ch22 - LocalizeMe/LocalizeMe/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | CFBundleDisplayName = "Localize Me"; 4 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe/LocalizeMe/en.lproj/flag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch22 - LocalizeMe/LocalizeMe/en.lproj/flag.png -------------------------------------------------------------------------------- /ch22 - LocalizeMe/LocalizeMe/fr.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | CFBundleDisplayName = "Localisez Moi"; 4 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe/LocalizeMe/fr.lproj/flag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch22 - LocalizeMe/LocalizeMe/fr.lproj/flag.png -------------------------------------------------------------------------------- /ch22 - LocalizeMe/en.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch22 - LocalizeMe/en.lproj/Localizable.strings -------------------------------------------------------------------------------- /ch22 - LocalizeMe/fr.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch22 - LocalizeMe/fr.lproj/Localizable.strings -------------------------------------------------------------------------------- /ch11 - Presidents/Presidents/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch11 - Presidents/Presidents/Default-568h@2x.png -------------------------------------------------------------------------------- /ch12/AppSettings/AppSettings/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch12/AppSettings/AppSettings/Default-568h@2x.png -------------------------------------------------------------------------------- /ch15 - SlowWorker/SlowWorker/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch15 - SlowWorker/SlowWorker/Default-568h@2x.png -------------------------------------------------------------------------------- /ch17 - TouchExplorer/TouchExplorer/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - TouchExplorer/TouchExplorer/Default@2x.png -------------------------------------------------------------------------------- /ch19 - MotionMonitor1/MotionMonitor/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - MotionMonitor1/MotionMonitor/Default.png -------------------------------------------------------------------------------- /ch19 - MotionMonitor2/MotionMonitor/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - MotionMonitor2/MotionMonitor/Default.png -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak - Motion Methods/glass.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - ShakeAndBreak - Motion Methods/glass.wav -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak/ShakeAndBreak/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - ShakeAndBreak/ShakeAndBreak/Default@2x.png -------------------------------------------------------------------------------- /ch22 - LocalizeMe/LocalizeMe/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch22 - LocalizeMe/LocalizeMe/Default-568h@2x.png -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/LocalizeMe/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch22 - LocalizeMe2/LocalizeMe/Default-568h@2x.png -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/LocalizeMe/en.lproj/flag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch22 - LocalizeMe2/LocalizeMe/en.lproj/flag.png -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/LocalizeMe/fr.lproj/flag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch22 - LocalizeMe2/LocalizeMe/fr.lproj/flag.png -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/en.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch22 - LocalizeMe2/en.lproj/Localizable.strings -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/fr.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch22 - LocalizeMe2/fr.lproj/Localizable.strings -------------------------------------------------------------------------------- /ch13 - Persistence/Persistence/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch13 - Persistence/Persistence/Default-568h@2x.png -------------------------------------------------------------------------------- /ch17 - CheckPlease/CheckPlease/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - CheckPlease/CheckPlease/Default-568h@2x.png -------------------------------------------------------------------------------- /ch19 - MotionMonitor1/MotionMonitor/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - MotionMonitor1/MotionMonitor/Default@2x.png -------------------------------------------------------------------------------- /ch19 - MotionMonitor2/MotionMonitor/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - MotionMonitor2/MotionMonitor/Default@2x.png -------------------------------------------------------------------------------- /ch21/DialogViewer/DialogViewer/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch21/DialogViewer/DialogViewer/Default-568h@2x.png -------------------------------------------------------------------------------- /ch09 - Nav/Images/disclosureButtonControllerIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch09 - Nav/Images/disclosureButtonControllerIcon.png -------------------------------------------------------------------------------- /ch17 - TouchExplorer/TouchExplorer/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch17 - TouchExplorer/TouchExplorer/Default-568h@2x.png -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak - Motion Methods/homebroken.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - ShakeAndBreak - Motion Methods/homebroken.png -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak/ShakeAndBreak/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - ShakeAndBreak/ShakeAndBreak/Default-568h@2x.png -------------------------------------------------------------------------------- /ch12/AppSettings/AppSettings/Settings.bundle/rabbit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch12/AppSettings/AppSettings/Settings.bundle/rabbit.png -------------------------------------------------------------------------------- /ch12/AppSettings/AppSettings/Settings.bundle/turtle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch12/AppSettings/AppSettings/Settings.bundle/turtle.png -------------------------------------------------------------------------------- /ch13 - SQLite Persistence/SQLite Persistence/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch13 - SQLite Persistence/SQLite Persistence/Default.png -------------------------------------------------------------------------------- /ch18/WhereAmI/WhereAmI/BIDPlace.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDPlace 3 | // WhereAmI 4 | // 5 | 6 | #import "BIDPlace.h" 7 | 8 | @implementation BIDPlace 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /ch19 - MotionMonitor1/MotionMonitor/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - MotionMonitor1/MotionMonitor/Default-568h@2x.png -------------------------------------------------------------------------------- /ch19 - MotionMonitor2/MotionMonitor/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - MotionMonitor2/MotionMonitor/Default-568h@2x.png -------------------------------------------------------------------------------- /ch13 - SQLite Persistence/SQLite Persistence/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch13 - SQLite Persistence/SQLite Persistence/Default@2x.png -------------------------------------------------------------------------------- /ch13 - Core Data Peristence/Core Data Peristence/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch13 - Core Data Peristence/Core Data Peristence/Default.png -------------------------------------------------------------------------------- /ch13 - Core Data Peristence/Core Data Peristence/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch13 - Core Data Peristence/Core Data Peristence/Default@2x.png -------------------------------------------------------------------------------- /ch13 - SQLite Persistence/SQLite Persistence/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch13 - SQLite Persistence/SQLite Persistence/Default-568h@2x.png -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak - Motion Methods/ShakeAndBreak/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - ShakeAndBreak - Motion Methods/ShakeAndBreak/Default.png -------------------------------------------------------------------------------- /ch12/AppSettings/AppSettings/Settings.bundle/en.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch12/AppSettings/AppSettings/Settings.bundle/en.lproj/Root.strings -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak - Motion Methods/ShakeAndBreak/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - ShakeAndBreak - Motion Methods/ShakeAndBreak/Default@2x.png -------------------------------------------------------------------------------- /ch13 - Core Data Peristence/Core Data Peristence/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch13 - Core Data Peristence/Core Data Peristence/Default-568h@2x.png -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak - Motion Methods/ShakeAndBreak/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wikibook/beginningios6/master/ch19 - ShakeAndBreak - Motion Methods/ShakeAndBreak/Default-568h@2x.png -------------------------------------------------------------------------------- /ch19 - Ball/Ball/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // Ball 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /ch05/Autosize/Autosize/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // Autosize 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /ch21/DialogViewer/DialogViewer/BIDHeaderCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDHeaderCell.h 3 | // DialogViewer 4 | // 5 | 6 | #import "BIDContentCell.h" 7 | 8 | @interface BIDHeaderCell : BIDContentCell 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /ch16/GLFun/QuartzFun/UIColor+BIDRandom.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIColor+BIDRandom.h 3 | // QuartzFun 4 | // 5 | 6 | #import 7 | 8 | @interface UIColor (BIDRandom) 9 | + (UIColor *)randomColor; 10 | @end 11 | -------------------------------------------------------------------------------- /ch02/Hello World/Hello World/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // Hello World 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /ch05/Orientations/Orientations/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // Orientations 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /ch16/QuartzFun/QuartzFun/UIColor+BIDRandom.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIColor+BIDRandom.h 3 | // QuartzFun 4 | // 5 | 6 | #import 7 | 8 | @interface UIColor (BIDRandom) 9 | + (UIColor *)randomColor; 10 | @end 11 | -------------------------------------------------------------------------------- /ch10/Seg Nav/Seg Nav/BIDRootViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDRootViewController.h 3 | // Seg Nav 4 | // 5 | 6 | #import 7 | 8 | @interface BIDRootViewController : UITableViewController 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /ch21/DialogViewer/DialogViewer/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // DialogViewer 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UICollectionViewController 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/BIDSecondLevelViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDSecondLevelViewController.m 3 | // Nav 4 | // 5 | 6 | #import "BIDSecondLevelViewController.h" 7 | 8 | @implementation BIDSecondLevelViewController 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /ch10/Seg Nav/Seg Nav/BIDTaskListController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDTaskListController.h 3 | // Simple Storyboard 4 | // 5 | 6 | #import 7 | 8 | @interface BIDTaskListController : UITableViewController 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /ch10/Simple Storyboard/Simple Storyboard/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // Simple Storyboard 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /ch05/Swap/Swap.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch17 - CheckPlease/CheckPlease/BIDCheckMarkRecognizer.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDCheckMarkRecognizer.h 3 | // CheckPlease 4 | // 5 | 6 | #import 7 | 8 | @interface BIDCheckMarkRecognizer : UIGestureRecognizer 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /ch19 - Ball/Ball.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch08 - Cells/Cells.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch16/GLFun/GLFun.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch05/Autosize/Autosize.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch07 - Pickers/Pickers.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch10/Seg Nav/Seg Nav.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch14/TinyPix/TinyPix.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch17 - PinchMe/PinchMe.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch17 - Swipes1/Swipes.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch17 - Swipes2/Swipes.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch17 - TapTaps/TapTaps.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch18/WhereAmI/WhereAmI.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch20 - Camera/Camera.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch08 - Sections/Sections.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch10/Simple Storyboard/Simple Storyboard/BIDTaskListController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDTaskListController.h 3 | // Simple Storyboard 4 | // 5 | 6 | #import 7 | 8 | @interface BIDTaskListController : UITableViewController 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /ch15 - State Lab/State Lab.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch16/QuartzFun/QuartzFun.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch02/Hello World/Hello World.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch03/Button Fun/Button Fun.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch04/Control Fun/Control Fun.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch05/Restructure/Restructure.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch11 - Presidents/Presidents.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch12/AppSettings/AppSettings.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch15 - SlowWorker/SlowWorker.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe/LocalizeMe.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/LocalizeMe.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch05/Orientations/Orientations.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch06/View Switcher/View Switcher.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch06/View Switcher/View Switcher/BIDBlueViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDBlueViewController.h 3 | // View Switcher 4 | // 5 | 6 | #import 7 | 8 | @interface BIDBlueViewController : UIViewController 9 | - (IBAction)blueButtonPressed; 10 | @end 11 | -------------------------------------------------------------------------------- /ch08 - Simple Table/Simple Table.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Nav 4 | // 5 | 6 | #import 7 | 8 | @interface BIDAppDelegate : UIResponder 9 | 10 | @property (strong, nonatomic) UIWindow *window; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch13 - Persistence/Persistence.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch17 - CheckPlease/CheckPlease.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch21/DialogViewer/DialogViewer.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch17 - TouchExplorer/TouchExplorer.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch19 - MotionMonitor1/MotionMonitor.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch19 - MotionMonitor2/MotionMonitor.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak/ShakeAndBreak.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch06/View Switcher/View Switcher/BIDYellowViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDYellowViewController.h 3 | // View Switcher 4 | // 5 | 6 | #import 7 | 8 | @interface BIDYellowViewController : UIViewController 9 | - (IBAction)yellowButtonPressed; 10 | @end 11 | -------------------------------------------------------------------------------- /ch10/Seg Nav/Seg Nav/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Seg Nav 4 | // 5 | 6 | #import 7 | 8 | @interface BIDAppDelegate : UIResponder 9 | 10 | @property (strong, nonatomic) UIWindow *window; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch14/TinyPix/TinyPix/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // TinyPix 4 | // 5 | 6 | #import 7 | 8 | @interface BIDAppDelegate : UIResponder 9 | 10 | @property (strong, nonatomic) UIWindow *window; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch10/Simple Storyboard/Simple Storyboard.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch11 - Presidents/Presidents/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Presidents 4 | // 5 | 6 | #import 7 | 8 | @interface BIDAppDelegate : UIResponder 9 | 10 | @property (strong, nonatomic) UIWindow *window; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch13 - Persistence/Persistence/BIDFourLines.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDFourLines.h 3 | // Persistence 4 | // 5 | 6 | #import 7 | 8 | @interface BIDFourLines : NSObject 9 | 10 | @property (copy, nonatomic) NSArray *lines; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch13 - SQLite Persistence/SQLite Persistence.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch17 - CheckPlease/CheckPlease/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // CheckPlease 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @property (weak, nonatomic) IBOutlet UILabel *label; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak - Motion Methods/ShakeAndBreak.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch12/AppSettings/AppSettings/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // AppSettings 4 | // 5 | 6 | #import 7 | 8 | @interface BIDAppDelegate : UIResponder 9 | 10 | @property (strong, nonatomic) UIWindow *window; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch13 - Core Data Peristence/Core Data Peristence.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/BIDSecondLevelViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDSecondLevelViewController.h 3 | // Nav 4 | // 5 | 6 | #import 7 | 8 | @interface BIDSecondLevelViewController : UITableViewController 9 | 10 | @property (strong, nonatomic) UIImage *rowImage; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak/ShakeAndBreak/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // ShakeAndBreak 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @property (weak, nonatomic) IBOutlet UIImageView *imageView; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/BIDFirstLevelViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDFirstLevelControllerViewController.h 3 | // Nav 4 | // 5 | 6 | #import 7 | 8 | @interface BIDFirstLevelViewController : UITableViewController 9 | 10 | @property (copy, nonatomic) NSArray *controllers; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch10/Simple Storyboard/Simple Storyboard/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Simple Storyboard 4 | // 5 | 6 | #import 7 | 8 | @interface BIDAppDelegate : UIResponder 9 | 10 | @property (strong, nonatomic) UIWindow *window; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch17 - PinchMe/PinchMe/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // PinchMe 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @property (strong, nonatomic) UIImageView *imageView; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch08 - Cells/Cells/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // Cells 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | 11 | @property (copy, nonatomic) NSArray *computers; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/BIDMoveMeViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDMoveMeViewController.h 3 | // Nav 4 | // 5 | 6 | #import "BIDSecondLevelViewController.h" 7 | 8 | @interface BIDMoveMeViewController : BIDSecondLevelViewController 9 | 10 | @property (strong, nonatomic) NSMutableArray *words; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch13 - Persistence/Persistence/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // Persistence 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @property (strong, nonatomic) IBOutletCollection(UITextField) NSArray *lineFields; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak - Motion Methods/ShakeAndBreak/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // ShakeAndBreak 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @property (weak, nonatomic) IBOutlet UIImageView *imageView; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/BIDDeleteMeViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDDeleteMeViewController.h 3 | // Nav 4 | // 5 | 6 | #import "BIDSecondLevelViewController.h" 7 | 8 | @interface BIDDeleteMeViewController : BIDSecondLevelViewController 9 | 10 | @property (strong, nonatomic) NSMutableArray *computers; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch17 - Swipes1/Swipes/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // Swipes 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @property (weak, nonatomic) IBOutlet UILabel *label; 11 | @property (nonatomic) CGPoint gestureStartPoint; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ch17 - Swipes2/Swipes/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // Swipes 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @property (weak, nonatomic) IBOutlet UILabel *label; 11 | @property (nonatomic) CGPoint gestureStartPoint; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ch03/Button Fun/Button Fun/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // Button Fun 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | @property (weak, nonatomic) IBOutlet UILabel *statusLabel; 10 | - (IBAction)buttonPressed:(UIButton *)sender; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch05/Swap/Swap/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Swap 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch08 - Simple Table/Simple Table/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // Simple Table 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | 11 | @property (copy, nonatomic) NSArray *dwarves; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Nav 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch08 - Cells/Cells/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Cells 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch13 - SQLite Persistence/SQLite Persistence/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // SQLite Persistence 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @property (strong, nonatomic) IBOutletCollection(UITextField) NSArray *lineFields; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch16/GLFun/QuartzFun/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // QuartzFun 4 | // 5 | 6 | #import 7 | 8 | #import "AppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch19 - Ball/Ball/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Ball 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch07 - Pickers/Pickers/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Pickers 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch10/Seg Nav/Seg Nav/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Seg Nav 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch13 - Core Data Peristence/Core Data Peristence/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // Core Data Peristence 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @property (strong, nonatomic) IBOutletCollection(UITextField) NSArray *lineFields; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch14/TinyPix/TinyPix/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // TinyPix 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch16/QuartzFun/QuartzFun/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // QuartzFun 4 | // 5 | 6 | #import 7 | 8 | #import "AppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch17 - PinchMe/PinchMe/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // PinchMe 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch17 - Swipes1/Swipes/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Swipes 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch17 - Swipes2/Swipes/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Swipes 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch17 - TapTaps/TapTaps/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // TapTaps 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch20 - Camera/Camera/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Camera 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch05/Autosize/Autosize/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Autosize 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch07 - Pickers/Pickers/BIDDatePickerViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDDatePickerViewController.h 3 | // Pickers 4 | // 5 | 6 | #import 7 | 8 | @interface BIDDatePickerViewController : UIViewController 9 | 10 | @property (strong, nonatomic) IBOutlet UIDatePicker *datePicker; 11 | - (IBAction)buttonPressed; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ch08 - Sections/Sections/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Sections 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch18/WhereAmI/WhereAmI/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // WhereAmI 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch02/Hello World/Hello World/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Hello World 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch03/Button Fun/Button Fun/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Button Fun 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch04/Control Fun/Control Fun/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Control Fun 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch05/Restructure/Restructure/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Restructure 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch11 - Presidents/Presidents/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Presidents 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch12/AppSettings/AppSettings/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // AppSettings 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch14/TinyPix/TinyPix/BIDTinyPixView.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDTinyPixView.h 3 | // TinyPix 4 | // 5 | 6 | #import 7 | @class BIDTinyPixDocument; 8 | 9 | @interface BIDTinyPixView : UIView 10 | 11 | @property (strong, nonatomic) BIDTinyPixDocument *document; 12 | @property (strong, nonatomic) UIColor *highlightColor; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /ch15 - SlowWorker/SlowWorker/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // SlowWorker 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch15 - State Lab/State Lab/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // State Lab 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe/LocalizeMe/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // LocalizeMe 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/LocalizeMe/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // LocalizeMe 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch05/Orientations/Orientations/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Orientations 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch08 - Simple Table/Simple Table/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Simple Table 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch13 - Persistence/Persistence/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Persistence 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch14/TinyPix/TinyPix/BIDMasterViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDMasterViewController.h 3 | // TinyPix 4 | // 5 | 6 | #import 7 | 8 | @interface BIDMasterViewController : UITableViewController 9 | 10 | @property (weak, nonatomic) IBOutlet UISegmentedControl *colorControl; 11 | - (IBAction)chooseColor:(id)sender; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ch17 - CheckPlease/CheckPlease/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // CheckPlease 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch21/DialogViewer/DialogViewer/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // DialogViewer 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch06/View Switcher/View Switcher/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // View Switcher 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch07 - Pickers/Pickers/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Pickers 4 | // 5 | 6 | #import 7 | 8 | @interface BIDAppDelegate : UIResponder 9 | 10 | @property (strong, nonatomic) UIWindow *window; 11 | @property (strong, nonatomic) IBOutlet UITabBarController *rootController; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/BIDDisclosureDetailViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDDisclosureDetailViewController.h 3 | // Nav 4 | // 5 | 6 | #import 7 | 8 | @interface BIDDisclosureDetailViewController : UIViewController 9 | 10 | @property (weak, readonly, nonatomic) UILabel *label; 11 | @property (copy, nonatomic) NSString *message; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ch16/GLFun/QuartzFun/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // QuartzFun 4 | // 5 | 6 | #import 7 | 8 | @interface ViewController : UIViewController 9 | @property (weak, nonatomic) IBOutlet UISegmentedControl *colorControl; 10 | - (IBAction)changeColor:(id)sender; 11 | - (IBAction)changeShape:(id)sender; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ch16/QuartzFun/QuartzFun/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // QuartzFun 4 | // 5 | 6 | #import 7 | 8 | @interface ViewController : UIViewController 9 | @property (weak, nonatomic) IBOutlet UISegmentedControl *colorControl; 10 | - (IBAction)changeColor:(id)sender; 11 | - (IBAction)changeShape:(id)sender; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ch17 - TouchExplorer/TouchExplorer/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // TouchExplorer 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch19 - MotionMonitor1/MotionMonitor/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // MotionMonitor 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch19 - MotionMonitor2/MotionMonitor/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // MotionMonitor 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak/ShakeAndBreak/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // ShakeAndBreak 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/BIDCheckListViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDCheckListViewController.h 3 | // Nav 4 | // 5 | 6 | #import "BIDSecondLevelViewController.h" 7 | 8 | @interface BIDCheckListViewController : BIDSecondLevelViewController 9 | 10 | @property (copy, nonatomic) NSArray *snacks; 11 | @property (assign, nonatomic) NSUInteger selectedSnack; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/BIDRowControlsViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDRowControlsViewController.h 3 | // Nav 4 | // 5 | 6 | #import "BIDSecondLevelViewController.h" 7 | 8 | @interface BIDRowControlsViewController : BIDSecondLevelViewController 9 | 10 | @property (copy, nonatomic) NSArray *characters; 11 | - (IBAction)tappedButton:(UIButton *)sender; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ch10/Simple Storyboard/Simple Storyboard/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Simple Storyboard 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch19 - MotionMonitor1/MotionMonitor/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // MotionMonitor 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @property (weak, nonatomic) IBOutlet UILabel *accelerometerLabel; 11 | @property (weak, nonatomic) IBOutlet UILabel *gyroscopeLabel; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ch19 - MotionMonitor2/MotionMonitor/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // MotionMonitor 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @property (weak, nonatomic) IBOutlet UILabel *accelerometerLabel; 11 | @property (weak, nonatomic) IBOutlet UILabel *gyroscopeLabel; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe/LocalizeMe/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // LocalizeMe 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @property (weak, nonatomic) IBOutlet UILabel *localeLabel; 11 | @property (strong, nonatomic) IBOutletCollection(UILabel) NSArray *labels; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/LocalizeMe/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // LocalizeMe 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @property (weak, nonatomic) IBOutlet UILabel *localeLabel; 11 | @property (strong, nonatomic) IBOutletCollection(UILabel) NSArray *labels; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ch13 - SQLite Persistence/SQLite Persistence/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // SQLite Persistence 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch16/GLFun/QuartzFun/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // QuartzFun 4 | // 5 | 6 | #import 7 | 8 | @class ViewController; 9 | 10 | @interface AppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) ViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch17 - CheckPlease/CGPointUtils.h: -------------------------------------------------------------------------------- 1 | // 2 | // CGPointUtils.h 3 | // CheckPlease 4 | // 5 | 6 | #import 7 | 8 | CGFloat distanceBetweenPoints (CGPoint first, CGPoint second); 9 | CGFloat angleBetweenPoints(CGPoint first, CGPoint second); 10 | CGFloat angleBetweenLines(CGPoint line1Start, CGPoint line1End, CGPoint line2Start, CGPoint lin2End); -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak - Motion Methods/ShakeAndBreak/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // ShakeAndBreak 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch05/Swap/Swap/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Swap 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch13 - Core Data Peristence/Core Data Peristence/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Core Data Peristence 4 | // 5 | 6 | #import 7 | 8 | #import "BIDAppDelegate.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BIDAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ch16/QuartzFun/QuartzFun/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // QuartzFun 4 | // 5 | 6 | #import 7 | 8 | @class ViewController; 9 | 10 | @interface AppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) ViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch19 - Ball/Ball/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Ball 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch21/DialogViewer/DialogViewer/BIDContentCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDContentCell.h 3 | // DialogViewer 4 | // 5 | 6 | #import 7 | 8 | @interface BIDContentCell : UICollectionViewCell 9 | 10 | @property (strong, nonatomic) UILabel *label; 11 | @property (copy, nonatomic) NSString *text; 12 | 13 | + (CGSize)sizeForContentString:(NSString *)s; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ch08 - Cells/Cells/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Cells 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch10/Simple Storyboard/Simple Storyboard/BIDStaticCellsController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDStaticCellsController.h 3 | // Simple Storyboard 4 | // 5 | 6 | #import 7 | 8 | @interface BIDStaticCellsController : UITableViewController 9 | @property (weak, nonatomic) IBOutlet UILabel *dateLabel; 10 | @property (weak, nonatomic) IBOutlet UILabel *timeLabel; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ch05/Autosize/Autosize/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Autosize 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch17 - PinchMe/PinchMe/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // PinchMe 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch17 - Swipes1/Swipes/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Swipes 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch17 - Swipes2/Swipes/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Swipes 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch17 - TapTaps/TapTaps/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // TapTaps 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch18/WhereAmI/WhereAmI/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // WhereAmI 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch20 - Camera/Camera/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Camera 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch08 - Sections/Sections/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Sections 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) UIViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch10/Seg Nav/Seg Nav/BIDTaskDetailController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDTaskDetailController.h 3 | // Seg Nav 4 | // 5 | 6 | #import 7 | 8 | @interface BIDTaskDetailController : UIViewController 9 | @property (weak, nonatomic) IBOutlet UITextView *textView; 10 | @property (copy, nonatomic) NSDictionary *selection; 11 | @property (weak, nonatomic) id delegate; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ch15 - State Lab/State Lab/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // State Lab 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch02/Hello World/Hello World/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Hello World 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch03/Button Fun/Button Fun/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Button Fun 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch04/Control Fun/Control Fun/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Control Fun 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch05/Restructure/Restructure/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Restructure 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch08 - Sections/Sections/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // Sections 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | 11 | @property (copy, nonatomic) NSDictionary *names; 12 | @property (copy, nonatomic) NSArray *keys; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /ch13 - Core Data Peristence/Core Data Peristence/Core_Data_Peristence.xcdatamodeld/.xccurrentversion: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | _XCCurrentVersionName 6 | Core_Data_Peristence.xcdatamodel 7 | 8 | 9 | -------------------------------------------------------------------------------- /ch15 - SlowWorker/SlowWorker/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // SlowWorker 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe/LocalizeMe/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // LocalizeMe 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/LocalizeMe/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // LocalizeMe 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch05/Orientations/Orientations/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Orientations 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch05/Swap/Swap/Swap-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Swap' target in the 'Swap' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch06/View Switcher/View Switcher/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // View Switcher 4 | // 5 | 6 | #import 7 | @class BIDSwitchViewController; 8 | @interface BIDAppDelegate : UIResponder 9 | 10 | @property (strong, nonatomic) UIWindow *window; 11 | @property (strong, nonatomic) BIDSwitchViewController *switchViewController; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ch08 - Simple Table/Simple Table/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Simple Table 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/Nav-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Nav' target in the 'Nav' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_3_0 8 | #warning "This project uses features only available in iOS SDK 3.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch13 - Persistence/Persistence/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Persistence 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch17 - CheckPlease/CheckPlease/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // CheckPlease 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch21/DialogViewer/DialogViewer/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // DialogViewer 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch17 - TouchExplorer/TouchExplorer/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // TouchExplorer 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch19 - Ball/Ball/Ball-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Ball' target in the 'Ball' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch19 - MotionMonitor1/MotionMonitor/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // MotionMonitor 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch19 - MotionMonitor2/MotionMonitor/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // MotionMonitor 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak/ShakeAndBreak/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // ShakeAndBreak 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch08 - Cells/Cells/Cells-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Cells' target in the 'Cells' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch10/Seg Nav/Seg Nav/Seg Nav-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Seg Nav' target in the 'Seg Nav' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_3_0 8 | #warning "This project uses features only available in iOS SDK 3.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch14/TinyPix/TinyPix/TinyPix-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'TinyPix' target in the 'TinyPix' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_5_0 8 | #warning "This project uses features only available in iOS SDK 5.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch17 - Swipes1/Swipes/Swipes-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Swipes' target in the 'Swipes' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch17 - Swipes2/Swipes/Swipes-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Swipes' target in the 'Swipes' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch18/WhereAmI/WhereAmI/BIDPlace.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDPlace 3 | // WhereAmI 4 | // 5 | 6 | #import 7 | #import 8 | 9 | 10 | @interface BIDPlace : NSObject 11 | 12 | @property (copy, nonatomic) NSString *title; 13 | @property (copy, nonatomic) NSString *subtitle; 14 | @property (assign, nonatomic) CLLocationCoordinate2D coordinate; 15 | 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /ch20 - Camera/Camera/Camera-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Camera' target in the 'Camera' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch05/Autosize/Autosize/Autosize-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Autosize' target in the 'Autosize' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch07 - Pickers/Pickers/Pickers-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Pickers' target in the 'Pickers' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_3_0 8 | #warning "This project uses features only available in iOS SDK 3.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/BIDPresidentsViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDPresidentsViewController.h 3 | // Nav 4 | // 5 | 6 | #import "BIDSecondLevelViewController.h" 7 | #import "BIDPresidentDetailViewController.h" 8 | 9 | @interface BIDPresidentsViewController : BIDSecondLevelViewController 10 | 11 | 12 | @property (strong, nonatomic) NSMutableArray *presidents; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /ch11 - Presidents/Presidents/BIDMasterViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDMasterViewController.h 3 | // Presidents 4 | // 5 | 6 | #import 7 | 8 | @class BIDDetailViewController; 9 | 10 | @interface BIDMasterViewController : UITableViewController 11 | 12 | @property (strong, nonatomic) BIDDetailViewController *detailViewController; 13 | @property (copy, nonatomic) NSArray *presidents; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ch13 - SQLite Persistence/SQLite Persistence/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // SQLite Persistence 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch16/GLFun/QuartzFun/GLFun-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'QuartzFun' target in the 'QuartzFun' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch17 - PinchMe/PinchMe/PinchMe-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'PinchMe' target in the 'PinchMe' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch17 - TapTaps/TapTaps/TapTaps-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'TapTaps' target in the 'TapTaps' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch18/WhereAmI/WhereAmI/WhereAmI-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'WhereAmI' target in the 'WhereAmI' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak - Motion Methods/ShakeAndBreak/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // ShakeAndBreak 4 | // 5 | 6 | #import 7 | 8 | @class BIDViewController; 9 | 10 | @interface BIDAppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | @property (strong, nonatomic) BIDViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch08 - Sections/Sections/Sections-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Sections' target in the 'Sections' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch16/QuartzFun/QuartzFun/QuartzFun-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'QuartzFun' target in the 'QuartzFun' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch03/Button Fun/Button Fun/Button Fun-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Button Fun' target in the 'Button Fun' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch15 - State Lab/State Lab/State Lab-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'State Lab' target in the 'State Lab' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch02/Hello World/Hello World/Hello World-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Hello World' target in the 'Hello World' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch04/Control Fun/Control Fun/Control Fun-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Control Fun' target in the 'Control Fun' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch05/Restructure/Restructure/Restructure-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Restructure' target in the 'Restructure' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch11 - Presidents/Presidents/Presidents-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Presidents' target in the 'Presidents' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_5_0 8 | #warning "This project uses features only available in iOS SDK 5.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch12/AppSettings/AppSettings/AppSettings-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'AppSettings' target in the 'AppSettings' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_5_0 8 | #warning "This project uses features only available in iOS SDK 5.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch15 - SlowWorker/SlowWorker/SlowWorker-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'SlowWorker' target in the 'SlowWorker' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe/LocalizeMe/LocalizeMe-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'LocalizeMe' target in the 'LocalizeMe' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/LocalizeMe/LocalizeMe-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'LocalizeMe' target in the 'LocalizeMe' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch05/Orientations/Orientations/Orientations-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Orientations' target in the 'Orientations' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch13 - Persistence/Persistence/Persistence-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Persistence' target in the 'Persistence' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch17 - CheckPlease/CheckPlease/CheckPlease-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'CheckPlease' target in the 'CheckPlease' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch21/DialogViewer/DialogViewer/DialogViewer-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'DialogViewer' target in the 'DialogViewer' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch06/View Switcher/View Switcher/View Switcher-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'View Switcher' target in the 'View Switcher' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_3_0 8 | #warning "This project uses features only available in iOS SDK 3.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch08 - Cells/Cells/BIDNameAndColorCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDNameAndColorCell.h 3 | // Cells 4 | // 5 | 6 | #import 7 | 8 | @interface BIDNameAndColorCell : UITableViewCell 9 | 10 | @property (copy, nonatomic) NSString *name; 11 | @property (copy, nonatomic) NSString *color; 12 | 13 | @property (strong, nonatomic) IBOutlet UILabel *nameValue; 14 | @property (strong, nonatomic) IBOutlet UILabel *colorValue; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch08 - Simple Table/Simple Table/Simple Table-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Simple Table' target in the 'Simple Table' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch15 - State Lab/State Lab/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // State Lab 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @property (strong, nonatomic) UILabel *label; 11 | @property (strong, nonatomic) UIImage *smiley; 12 | @property (strong, nonatomic) UIImageView *smileyView; 13 | @property (strong, nonatomic) UISegmentedControl *segmentedControl; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ch17 - TouchExplorer/TouchExplorer/TouchExplorer-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'TouchExplorer' target in the 'TouchExplorer' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch19 - MotionMonitor1/MotionMonitor/MotionMonitor-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'MotionMonitor' target in the 'MotionMonitor' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch19 - MotionMonitor2/MotionMonitor/MotionMonitor-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'MotionMonitor' target in the 'MotionMonitor' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak/ShakeAndBreak/ShakeAndBreak-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'ShakeAndBreak' target in the 'ShakeAndBreak' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch14/TinyPix/TinyPix/BIDDetailViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDDetailViewController.h 3 | // TinyPix 4 | // 5 | 6 | #import 7 | 8 | @class BIDTinyPixView; 9 | 10 | @interface BIDDetailViewController : UIViewController 11 | 12 | @property (strong, nonatomic) id detailItem; 13 | 14 | @property (weak, nonatomic) IBOutlet UILabel *detailDescriptionLabel; 15 | @property (weak, nonatomic) IBOutlet BIDTinyPixView *pixView; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/BIDDisclosureButtonViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDDisclosureButtonViewController.h 3 | // Nav 4 | // 5 | 6 | #import "BIDSecondLevelViewController.h" 7 | 8 | @class BIDDisclosureDetailViewController; 9 | 10 | @interface BIDDisclosureButtonViewController : BIDSecondLevelViewController 11 | 12 | @property (copy, nonatomic) NSArray *movies; 13 | @property (strong, nonatomic) BIDDisclosureDetailViewController *detailController; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/BIDPresident.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDPresident.h 3 | // Nav 4 | // 5 | 6 | #import 7 | 8 | @interface BIDPresident : NSObject 9 | 10 | @property (assign, nonatomic) NSInteger number; 11 | @property (copy, nonatomic) NSString *name; 12 | @property (copy, nonatomic) NSString *fromYear; 13 | @property (copy, nonatomic) NSString *toYear; 14 | @property (copy, nonatomic) NSString *party; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch10/Simple Storyboard/Simple Storyboard/Simple Storyboard-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Simple Storyboard' target in the 'Simple Storyboard' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_5_0 8 | #warning "This project uses features only available in iOS SDK 5.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak - Motion Methods/ShakeAndBreak/ShakeAndBreak-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'ShakeAndBreak' target in the 'ShakeAndBreak' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch14/TinyPix/TinyPix/BIDTinyPixDocument.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDTinyPixDocument.h 3 | // TinyPix 4 | // 5 | 6 | #import 7 | 8 | @interface BIDTinyPixDocument : UIDocument 9 | 10 | // row and column range from 0 to 7 11 | - (BOOL)stateAtRow:(NSUInteger)row column:(NSUInteger)column; 12 | - (void)setState:(BOOL)state atRow:(NSUInteger)row column:(NSUInteger)column; 13 | - (void)toggleStateAtRow:(NSUInteger)row column:(NSUInteger)column; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ch17 - TapTaps/TapTaps/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // TapTaps 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @property (weak, nonatomic) IBOutlet UILabel *singleLabel; 11 | @property (weak, nonatomic) IBOutlet UILabel *doubleLabel; 12 | @property (weak, nonatomic) IBOutlet UILabel *tripleLabel; 13 | @property (weak, nonatomic) IBOutlet UILabel *quadrupleLabel; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ch13 - SQLite Persistence/SQLite Persistence/SQLite Persistence-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'SQLite Persistence' target in the 'SQLite Persistence' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ch15 - SlowWorker/SlowWorker/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // SlowWorker 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @property (weak, nonatomic) IBOutlet UIButton *startButton; 11 | @property (weak, nonatomic) IBOutlet UITextView *resultsTextView; 12 | @property (weak, nonatomic) IBOutlet UIActivityIndicatorView *spinner; 13 | 14 | - (IBAction)doWork:(id)sender; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch17 - TouchExplorer/TouchExplorer/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // TouchExplorer 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | @property (weak, nonatomic) IBOutlet UILabel *messageLabel; 11 | @property (weak, nonatomic) IBOutlet UILabel *tapsLabel; 12 | @property (weak, nonatomic) IBOutlet UILabel *touchesLabel; 13 | 14 | - (void)updateLabelsFromTouches:(NSSet *)touches; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch07 - Pickers/Pickers/BIDSingleComponentPickerViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDSingleComponentPickerViewController.h 3 | // Pickers 4 | // 5 | 6 | #import 7 | 8 | @interface BIDSingleComponentPickerViewController : UIViewController 9 | 10 | 11 | @property (strong, nonatomic) IBOutlet UIPickerView *singlePicker; 12 | @property (strong, nonatomic) NSArray *characterNames; 13 | - (IBAction)buttonPressed; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ch11 - Presidents/Presidents/BIDLanguageListController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDLanguageListController.h 3 | // Presidents 4 | // 5 | 6 | #import 7 | 8 | @class BIDDetailViewController; 9 | 10 | @interface BIDLanguageListController : UITableViewController 11 | 12 | @property (weak, nonatomic) BIDDetailViewController *detailViewController; 13 | @property (strong, nonatomic) NSArray *languageNames; 14 | @property (strong, nonatomic) NSArray *languageCodes; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ch16/GLFun/QuartzFun/BIDGLFunView.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDGLFunView.h 3 | // GLFun 4 | // 5 | 6 | #import "BIDConstants.h" 7 | #import "OpenGLES2DView.h" 8 | 9 | @class Texture2D; 10 | 11 | @interface BIDGLFunView : OpenGLES2DView 12 | @property CGPoint firstTouch; 13 | @property CGPoint lastTouch; 14 | @property (nonatomic, strong) UIColor *currentColor; 15 | @property BOOL useRandomColor; 16 | @property ShapeType shapeType; 17 | @property (nonatomic, strong) Texture2D *sprite; 18 | @end 19 | -------------------------------------------------------------------------------- /ch05/Swap/Swap/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // Swap 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | @property (strong, nonatomic) IBOutlet UIView *portrait; 10 | @property (strong, nonatomic) IBOutlet UIView *landscape; 11 | @property (strong, nonatomic) IBOutletCollection(UIButton) NSArray *foos; 12 | @property (strong, nonatomic) IBOutletCollection(UIButton) NSArray *bars; 13 | - (IBAction)buttonTapped:(id)sender; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ch13 - Core Data Peristence/Core Data Peristence/Core Data Peristence-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Core Data Peristence' target in the 'Core Data Peristence' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_3_0 8 | #warning "This project uses features only available in iOS SDK 3.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #import 15 | #endif 16 | -------------------------------------------------------------------------------- /ch06/View Switcher/View Switcher/BIDSwitchViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDSwitchViewController.h 3 | // View Switcher 4 | // 5 | 6 | #import 7 | 8 | @class BIDYellowViewController; 9 | @class BIDBlueViewController; 10 | 11 | @interface BIDSwitchViewController : UIViewController 12 | 13 | @property (strong, nonatomic) BIDYellowViewController *yellowViewController; 14 | @property (strong, nonatomic) BIDBlueViewController *blueViewController; 15 | 16 | - (IBAction)switchViews:(id)sender; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /ch20 - Camera/Camera/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // Camera 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | 10 | 11 | @property (weak, nonatomic) IBOutlet UIImageView *imageView; 12 | @property (weak, nonatomic) IBOutlet UIButton *takePictureButton; 13 | 14 | - (IBAction)shootPictureOrVideo:(id)sender; 15 | - (IBAction)selectExistingPictureOrVideo:(id)sender; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /ch05/Restructure/Restructure/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // Restructure 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | @property (weak, nonatomic) IBOutlet UIButton *bigButton; 10 | @property (weak, nonatomic) IBOutlet UIButton *actionButton1; 11 | @property (weak, nonatomic) IBOutlet UIButton *actionButton2; 12 | @property (weak, nonatomic) IBOutlet UIButton *actionButton3; 13 | @property (weak, nonatomic) IBOutlet UIButton *actionButton4; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ch16/GLFun/QuartzFun/BIDConstants.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDConstants.h 3 | // QuartzFun 4 | // 5 | 6 | #ifndef QuartzFun_BIDConstants_h 7 | #define QuartzFun_BIDConstants_h 8 | 9 | typedef enum { 10 | kLineShape = 0, 11 | kRectShape, 12 | kEllipseShape, 13 | kImageShape 14 | } ShapeType; 15 | 16 | typedef enum { 17 | kRedColorTab = 0, 18 | kBlueColorTab, 19 | kYellowColorTab, 20 | kGreenColorTab, 21 | kRandomColorTab 22 | } ColorTabIndex; 23 | 24 | #define degreesToRadian(x) (M_PI * (x) / 180.0) 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /ch16/QuartzFun/QuartzFun/BIDConstants.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDConstants.h 3 | // QuartzFun 4 | // 5 | 6 | #ifndef QuartzFun_BIDConstants_h 7 | #define QuartzFun_BIDConstants_h 8 | 9 | typedef enum { 10 | kLineShape = 0, 11 | kRectShape, 12 | kEllipseShape, 13 | kImageShape 14 | } ShapeType; 15 | 16 | typedef enum { 17 | kRedColorTab = 0, 18 | kBlueColorTab, 19 | kYellowColorTab, 20 | kGreenColorTab, 21 | kRandomColorTab 22 | } ColorTabIndex; 23 | 24 | #define degreesToRadian(x) (M_PI * (x) / 180.0) 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /ch19 - Ball/Ball/BIDBallView.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDBallView.h 3 | // Ball 4 | // 5 | 6 | #import 7 | #import 8 | 9 | @interface BIDBallView : UIView 10 | 11 | @property (strong, nonatomic) UIImage *image; 12 | @property (assign, nonatomic) CGPoint currentPoint; 13 | @property (assign, nonatomic) CGPoint previousPoint; 14 | @property (assign, nonatomic) CMAcceleration acceleration; 15 | @property (assign, nonatomic) CGFloat ballXVelocity; 16 | @property (assign, nonatomic) CGFloat ballYVelocity; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /ch05/Autosize/Autosize/BIDViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.m 3 | // Autosize 4 | // 5 | 6 | #import "BIDViewController.h" 7 | 8 | @interface BIDViewController () 9 | 10 | @end 11 | 12 | @implementation BIDViewController 13 | 14 | - (void)viewDidLoad 15 | { 16 | [super viewDidLoad]; 17 | // Do any additional setup after loading the view, typically from a nib. 18 | } 19 | 20 | - (void)didReceiveMemoryWarning 21 | { 22 | [super didReceiveMemoryWarning]; 23 | // Dispose of any resources that can be recreated. 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /ch07 - Pickers/Pickers/BIDCustomPickerViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDCustomPickerViewController.h 3 | // Pickers 4 | // 5 | 6 | #import 7 | 8 | @interface BIDCustomPickerViewController : UIViewController 9 | 10 | 11 | @property (strong, nonatomic) IBOutlet UIPickerView *picker; 12 | @property (strong, nonatomic) IBOutlet UILabel *winLabel; 13 | @property (strong, nonatomic) NSArray *images; 14 | @property (strong, nonatomic) IBOutlet UIButton *button; 15 | 16 | - (IBAction)spin; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /ch02/Hello World/Hello World/BIDViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.m 3 | // Hello World 4 | // 5 | 6 | #import "BIDViewController.h" 7 | 8 | @interface BIDViewController () 9 | 10 | @end 11 | 12 | @implementation BIDViewController 13 | 14 | - (void)viewDidLoad 15 | { 16 | [super viewDidLoad]; 17 | // Do any additional setup after loading the view, typically from a nib. 18 | } 19 | 20 | - (void)didReceiveMemoryWarning 21 | { 22 | [super didReceiveMemoryWarning]; 23 | // Dispose of any resources that can be recreated. 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /ch10/Simple Storyboard/Simple Storyboard/BIDViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.m 3 | // Simple Storyboard 4 | // 5 | 6 | #import "BIDViewController.h" 7 | 8 | @interface BIDViewController () 9 | 10 | @end 11 | 12 | @implementation BIDViewController 13 | 14 | - (void)viewDidLoad 15 | { 16 | [super viewDidLoad]; 17 | // Do any additional setup after loading the view, typically from a nib. 18 | } 19 | 20 | - (void)didReceiveMemoryWarning 21 | { 22 | [super didReceiveMemoryWarning]; 23 | // Dispose of any resources that can be recreated. 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /ch16/QuartzFun/QuartzFun/BIDQuartzFunView.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDQuartzFunView.h 3 | // QuartzFun 4 | // 5 | 6 | #import 7 | #import "BIDConstants.h" 8 | 9 | @interface BIDQuartzFunView : UIView 10 | 11 | @property (nonatomic) CGPoint firstTouch; 12 | @property (nonatomic) CGPoint lastTouch; 13 | @property (strong, nonatomic) UIColor *currentColor; 14 | @property (nonatomic) ShapeType shapeType; 15 | @property (nonatomic, strong) UIImage *drawImage; 16 | @property (nonatomic) BOOL useRandomColor; 17 | @property (readonly) CGRect currentRect; 18 | @property CGRect redrawRect; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /ch07 - Pickers/Pickers/BIDDoubleComponentPickerViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDDoubleComponentPickerViewController.h 3 | // Pickers 4 | // 5 | 6 | #import 7 | 8 | #define kFillingComponent 0 9 | #define kBreadComponent 1 10 | 11 | @interface BIDDoubleComponentPickerViewController : UIViewController 12 | 13 | 14 | @property (strong, nonatomic) IBOutlet UIPickerView *doublePicker; 15 | @property (strong, nonatomic) NSArray *fillingTypes; 16 | @property (strong, nonatomic) NSArray *breadTypes; 17 | 18 | -(IBAction)buttonPressed; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /ch16/GLFun/QuartzFun/UIColor+BIDRandom.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIColor+BIDRandom.m 3 | // QuartzFun 4 | // 5 | 6 | #import "UIColor+BIDRandom.h" 7 | 8 | @implementation UIColor (BIDRandom) 9 | 10 | + (UIColor *)randomColor { 11 | static BOOL seeded = NO; 12 | if (!seeded) { 13 | seeded = YES; 14 | srandom(time(NULL)); 15 | } 16 | CGFloat red = (CGFloat)random() / (CGFloat)RAND_MAX; 17 | CGFloat blue = (CGFloat)random() / (CGFloat)RAND_MAX; 18 | CGFloat green = (CGFloat)random() / (CGFloat)RAND_MAX; 19 | return [UIColor colorWithRed:red green:green blue:blue alpha:1.0f]; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch16/QuartzFun/QuartzFun/UIColor+BIDRandom.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIColor+BIDRandom.m 3 | // QuartzFun 4 | // 5 | 6 | #import "UIColor+BIDRandom.h" 7 | 8 | @implementation UIColor (BIDRandom) 9 | 10 | + (UIColor *)randomColor { 11 | static BOOL seeded = NO; 12 | if (!seeded) { 13 | seeded = YES; 14 | srandom(time(NULL)); 15 | } 16 | CGFloat red = (CGFloat)random() / (CGFloat)RAND_MAX; 17 | CGFloat blue = (CGFloat)random() / (CGFloat)RAND_MAX; 18 | CGFloat green = (CGFloat)random() / (CGFloat)RAND_MAX; 19 | return [UIColor colorWithRed:red green:green blue:blue alpha:1.0f]; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch16/GLFun/QuartzFun/OpenGLES2DView.h: -------------------------------------------------------------------------------- 1 | // 2 | // OpenGLES2DView.h 3 | // GLFun 4 | // 5 | // Created by Jeff LaMarche on 8/5/08. 6 | // Copyright 2008 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | #import 13 | #import 14 | #import 15 | #import "BIDConstants.h" 16 | 17 | @interface OpenGLES2DView : UIView { 18 | 19 | @protected 20 | EAGLContext *context; 21 | GLuint viewRenderbuffer, viewFramebuffer; 22 | GLint backingWidth, backingHeight; 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /ch07 - Pickers/Pickers/BIDDependentComponentPickerViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDDependentComponentPickerViewController.h 3 | // Pickers 4 | // 5 | 6 | #import 7 | 8 | #define kStateComponent 0 9 | #define kZipComponent 1 10 | 11 | @interface BIDDependentComponentPickerViewController : UIViewController 12 | 13 | 14 | @property (strong, nonatomic) IBOutlet UIPickerView *dependentPicker; 15 | @property (strong, nonatomic) NSDictionary *stateZips; 16 | @property (strong, nonatomic) NSArray *states; 17 | @property (strong, nonatomic) NSArray *zips; 18 | 19 | - (IBAction) buttonPressed; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/BIDDisclosureDetailViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDDisclosureDetailViewController.m 3 | // Nav 4 | // 5 | 6 | #import "BIDDisclosureDetailViewController.h" 7 | 8 | @implementation BIDDisclosureDetailViewController 9 | 10 | - (UILabel *)label; 11 | { 12 | return (id)self.view; 13 | } 14 | 15 | - (void)loadView; 16 | { 17 | UILabel *label = [[UILabel alloc] init]; 18 | label.numberOfLines = 0; 19 | label.textAlignment = NSTextAlignmentCenter; 20 | self.view = label; 21 | } 22 | 23 | - (void)viewWillAppear:(BOOL)animated; 24 | { 25 | [super viewWillAppear:animated]; 26 | self.label.text = self.message; 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /ch13 - Core Data Peristence/Core Data Peristence/BIDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.h 3 | // Core Data Peristence 4 | // 5 | 6 | #import 7 | 8 | @interface BIDAppDelegate : UIResponder 9 | 10 | @property (strong, nonatomic) UIWindow *window; 11 | 12 | @property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext; 13 | @property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel; 14 | @property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator; 15 | 16 | - (void)saveContext; 17 | - (NSURL *)applicationDocumentsDirectory; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /ch14/TinyPix/TinyPix/TinyPix.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.developer.ubiquity-container-identifiers 6 | 7 | $(TeamIdentifierPrefix)com.apress.TinyPix13013 8 | 9 | com.apple.developer.ubiquity-kvstore-identifier 10 | $(TeamIdentifierPrefix)$(CFBundleIdentifier) 11 | keychain-access-groups 12 | 13 | $(AppIdentifierPrefix)com.apress.TinyPix13013 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /ch11 - Presidents/Presidents/BIDDetailViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDDetailViewController.h 3 | // Presidents 4 | // 5 | 6 | #import 7 | 8 | @interface BIDDetailViewController : UIViewController 9 | 10 | @property (strong, nonatomic) id detailItem; 11 | 12 | @property (weak, nonatomic) IBOutlet UILabel *detailDescriptionLabel; 13 | @property (weak, nonatomic) IBOutlet UIWebView *webView; 14 | @property (strong, nonatomic) UIBarButtonItem *languageButton; 15 | @property (strong, nonatomic) UIPopoverController *languagePopoverController; 16 | @property (copy, nonatomic) NSString *languageString; 17 | 18 | - (IBAction)toggleLanguagePopover; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /ch08 - Cells/Cells/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // Cells 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 13 | { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | // Override point for customization after application launch. 16 | self.viewController = [[BIDViewController alloc] initWithNibName:@"BIDViewController" bundle:nil]; 17 | self.window.rootViewController = self.viewController; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch19 - Ball/Ball/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // Ball 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 13 | { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | // Override point for customization after application launch. 16 | self.viewController = [[BIDViewController alloc] initWithNibName:@"BIDViewController" bundle:nil]; 17 | self.window.rootViewController = self.viewController; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch17 - PinchMe/PinchMe/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // PinchMe 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 13 | { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | // Override point for customization after application launch. 16 | self.viewController = [[BIDViewController alloc] initWithNibName:@"BIDViewController" bundle:nil]; 17 | self.window.rootViewController = self.viewController; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch17 - Swipes1/Swipes/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // Swipes 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 13 | { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | // Override point for customization after application launch. 16 | self.viewController = [[BIDViewController alloc] initWithNibName:@"BIDViewController" bundle:nil]; 17 | self.window.rootViewController = self.viewController; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch17 - Swipes2/Swipes/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // Swipes 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 13 | { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | // Override point for customization after application launch. 16 | self.viewController = [[BIDViewController alloc] initWithNibName:@"BIDViewController" bundle:nil]; 17 | self.window.rootViewController = self.viewController; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch17 - TapTaps/TapTaps/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // TapTaps 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 13 | { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | // Override point for customization after application launch. 16 | self.viewController = [[BIDViewController alloc] initWithNibName:@"BIDViewController" bundle:nil]; 17 | self.window.rootViewController = self.viewController; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch20 - Camera/Camera/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // Camera 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 13 | { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | // Override point for customization after application launch. 16 | self.viewController = [[BIDViewController alloc] initWithNibName:@"BIDViewController" bundle:nil]; 17 | self.window.rootViewController = self.viewController; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch07 - Pickers/Pickers/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // Pickers 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | @implementation BIDAppDelegate 9 | 10 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 11 | { 12 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 13 | // Override point for customization after application launch. 14 | [[NSBundle mainBundle] loadNibNamed:@"TabBarController" owner:self options:nil]; 15 | self.window.rootViewController = self.rootController; 16 | self.window.backgroundColor = [UIColor whiteColor]; 17 | [self.window makeKeyAndVisible]; 18 | return YES; 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /ch15 - SlowWorker/SlowWorker/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // SlowWorker 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 13 | { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | // Override point for customization after application launch. 16 | self.viewController = [[BIDViewController alloc] initWithNibName:@"BIDViewController" bundle:nil]; 17 | self.window.rootViewController = self.viewController; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe/LocalizeMe/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // LocalizeMe 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 13 | { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | // Override point for customization after application launch. 16 | self.viewController = [[BIDViewController alloc] initWithNibName:@"BIDViewController" bundle:nil]; 17 | self.window.rootViewController = self.viewController; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/LocalizeMe/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // LocalizeMe 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 13 | { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | // Override point for customization after application launch. 16 | self.viewController = [[BIDViewController alloc] initWithNibName:@"BIDViewController" bundle:nil]; 17 | self.window.rootViewController = self.viewController; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch08 - Simple Table/Simple Table/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // Simple Table 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 13 | { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | // Override point for customization after application launch. 16 | self.viewController = [[BIDViewController alloc] initWithNibName:@"BIDViewController" bundle:nil]; 17 | self.window.rootViewController = self.viewController; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch11 - Presidents/Presidents/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // Presidents 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | @implementation BIDAppDelegate 9 | 10 | - (BOOL)application:(UIApplication *)application 11 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 12 | { 13 | // Override point for customization after application launch. 14 | UISplitViewController *splitViewController = 15 | (UISplitViewController *)self.window.rootViewController; 16 | UINavigationController *navigationController = 17 | [splitViewController.viewControllers lastObject]; 18 | splitViewController.delegate = 19 | (id)navigationController.topViewController; 20 | return YES; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /ch13 - Persistence/Persistence/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // Persistence 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 13 | { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | // Override point for customization after application launch. 16 | self.viewController = [[BIDViewController alloc] initWithNibName:@"BIDViewController" bundle:nil]; 17 | self.window.rootViewController = self.viewController; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch17 - CheckPlease/CheckPlease/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // CheckPlease 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 13 | { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | // Override point for customization after application launch. 16 | self.viewController = [[BIDViewController alloc] initWithNibName:@"BIDViewController" bundle:nil]; 17 | self.window.rootViewController = self.viewController; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch17 - TouchExplorer/TouchExplorer/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // TouchExplorer 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 13 | { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | // Override point for customization after application launch. 16 | self.viewController = [[BIDViewController alloc] initWithNibName:@"BIDViewController" bundle:nil]; 17 | self.window.rootViewController = self.viewController; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch19 - MotionMonitor1/MotionMonitor/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // MotionMonitor 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 13 | { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | // Override point for customization after application launch. 16 | self.viewController = [[BIDViewController alloc] initWithNibName:@"BIDViewController" bundle:nil]; 17 | self.window.rootViewController = self.viewController; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak/ShakeAndBreak/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // ShakeAndBreak 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 13 | { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | // Override point for customization after application launch. 16 | self.viewController = [[BIDViewController alloc] initWithNibName:@"BIDViewController" bundle:nil]; 17 | self.window.rootViewController = self.viewController; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch13 - SQLite Persistence/SQLite Persistence/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // SQLite Persistence 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 13 | { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | // Override point for customization after application launch. 16 | self.viewController = [[BIDViewController alloc] initWithNibName:@"BIDViewController" bundle:nil]; 17 | self.window.rootViewController = self.viewController; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch19 - ShakeAndBreak - Motion Methods/ShakeAndBreak/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // ShakeAndBreak 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 13 | { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | // Override point for customization after application launch. 16 | self.viewController = [[BIDViewController alloc] initWithNibName:@"BIDViewController" bundle:nil]; 17 | self.window.rootViewController = self.viewController; 18 | [self.window makeKeyAndVisible]; 19 | return YES; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ch12/AppSettings/AppSettings/BIDFlipsideViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDFlipsideViewController.h 3 | // AppSettings 4 | // 5 | 6 | #import 7 | 8 | @class BIDFlipsideViewController; 9 | 10 | @protocol BIDFlipsideViewControllerDelegate 11 | - (void)flipsideViewControllerDidFinish:(BIDFlipsideViewController *)controller; 12 | @end 13 | 14 | @interface BIDFlipsideViewController : UIViewController 15 | 16 | @property (weak, nonatomic) id delegate; 17 | @property (weak, nonatomic) IBOutlet UISwitch *engineSwitch; 18 | @property (weak, nonatomic) IBOutlet UISlider *warpFactorSlider; 19 | 20 | - (void)refreshFields; 21 | - (IBAction)engineSwitchTapped; 22 | - (IBAction)warpSliderTouched; 23 | - (IBAction)done:(id)sender; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /ch13 - Core Data Peristence/Core Data Peristence/Core_Data_Peristence.xcdatamodeld/Core_Data_Peristence.xcdatamodel/contents: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /ch21/DialogViewer/DialogViewer/BIDHeaderCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDHeaderCell.m 3 | // DialogViewer 4 | // 5 | 6 | #import "BIDHeaderCell.h" 7 | 8 | @implementation BIDHeaderCell 9 | 10 | - (id)initWithFrame:(CGRect)frame 11 | { 12 | self = [super initWithFrame:frame]; 13 | if (self) { 14 | // Initialization code 15 | self.label.backgroundColor = [UIColor yellowColor]; 16 | self.label.textColor = [UIColor blackColor]; 17 | } 18 | return self; 19 | } 20 | 21 | + (UIFont *)defaultFont { 22 | return [UIFont systemFontOfSize:17]; 23 | } 24 | 25 | /* 26 | // Only override drawRect: if you perform custom drawing. 27 | // An empty implementation adversely affects performance during animation. 28 | - (void)drawRect:(CGRect)rect 29 | { 30 | // Drawing code 31 | } 32 | */ 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /ch05/Orientations/Orientations/BIDViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.m 3 | // Orientations 4 | // 5 | 6 | #import "BIDViewController.h" 7 | 8 | @interface BIDViewController () 9 | 10 | @end 11 | 12 | @implementation BIDViewController 13 | 14 | - (void)viewDidLoad 15 | { 16 | [super viewDidLoad]; 17 | // Do any additional setup after loading the view, typically from a nib. 18 | } 19 | 20 | - (void)didReceiveMemoryWarning 21 | { 22 | [super didReceiveMemoryWarning]; 23 | // Dispose of any resources that can be recreated. 24 | } 25 | 26 | - (BOOL)shouldAutorotate { 27 | return YES; 28 | } 29 | 30 | - (NSUInteger)supportedInterfaceOrientations { 31 | return UIInterfaceOrientationMaskLandscapeRight | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskPortrait; 32 | 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // Nav 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | #import "BIDFirstLevelViewController.h" 8 | 9 | @implementation BIDAppDelegate 10 | 11 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 12 | { 13 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 14 | // Override point for customization after application launch. 15 | BIDFirstLevelViewController *first = [[BIDFirstLevelViewController alloc] init]; 16 | UINavigationController *navigation = [[UINavigationController alloc] initWithRootViewController:first]; 17 | self.window.rootViewController = navigation; 18 | self.window.backgroundColor = [UIColor whiteColor]; 19 | [self.window makeKeyAndVisible]; 20 | return YES; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /ch17 - CheckPlease/CheckPlease/BIDViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.m 3 | // CheckPlease 4 | // 5 | 6 | #import "BIDViewController.h" 7 | #import "BIDCheckMarkRecognizer.h" 8 | 9 | @implementation BIDViewController 10 | 11 | - (void)doCheck:(BIDCheckMarkRecognizer *)check 12 | { 13 | self.label.text = @"Checkmark"; 14 | [self performSelector:@selector(eraseLabel) 15 | withObject:nil afterDelay:1.6]; 16 | } 17 | 18 | - (void)eraseLabel 19 | { 20 | self.label.text = @""; 21 | } 22 | 23 | - (void)viewDidLoad 24 | { 25 | [super viewDidLoad]; 26 | // Do any additional setup after loading the view, typically from a nib. 27 | BIDCheckMarkRecognizer *check = [[BIDCheckMarkRecognizer alloc] 28 | initWithTarget:self action:@selector(doCheck:)]; 29 | [self.view addGestureRecognizer:check]; 30 | } 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /ch04/Control Fun/Control Fun/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // Control Fun 4 | // 5 | 6 | #import 7 | 8 | @interface BIDViewController : UIViewController 9 | @property (weak, nonatomic) IBOutlet UITextField *nameField; 10 | @property (weak, nonatomic) IBOutlet UITextField *numberField; 11 | @property (weak, nonatomic) IBOutlet UILabel *sliderLabel; 12 | @property (weak, nonatomic) IBOutlet UISwitch *leftSwitch; 13 | @property (weak, nonatomic) IBOutlet UISwitch *rightSwitch; 14 | @property (weak, nonatomic) IBOutlet UIButton *doSomethingButton; 15 | 16 | - (IBAction)textFieldDoneEditing:(id)sender; 17 | - (IBAction)backgroundTap:(id)sender; 18 | - (IBAction)sliderChanged:(UISlider *)sender; 19 | - (IBAction)switchChanged:(UISwitch *)sender; 20 | - (IBAction)toggleControls:(UISegmentedControl *)sender; 21 | - (IBAction)buttonPressed:(id)sender; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /ch08 - Sections/Sections/BIDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDAppDelegate.m 3 | // Sections 4 | // 5 | 6 | #import "BIDAppDelegate.h" 7 | 8 | #import "BIDViewController.h" 9 | 10 | @implementation BIDAppDelegate 11 | 12 | - (BOOL)application:(UIApplication *)application 13 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 16 | // Override point for customization after application launch. 17 | BIDViewController *controller = [[BIDViewController alloc] 18 | initWithNibName:@"BIDViewController" 19 | bundle:nil]; 20 | self.viewController = [[UINavigationController alloc] 21 | initWithRootViewController:controller]; 22 | self.window.rootViewController = self.viewController; 23 | [self.window makeKeyAndVisible]; 24 | return YES; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/BIDPresidentDetailViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDPresidentDetailViewController.h 3 | // Nav 4 | // 5 | 6 | #import 7 | 8 | @class BIDPresident; 9 | @protocol BIDPresidentDetailViewControllerDelegate; 10 | 11 | @interface BIDPresidentDetailViewController : UITableViewController 12 | 13 | @property (copy, nonatomic) BIDPresident *president; 14 | @property (weak, nonatomic) id delegate; 15 | @property (assign, nonatomic) NSInteger row; 16 | 17 | @property (strong, nonatomic) NSArray *fieldLabels; 18 | 19 | - (IBAction)cancel:(id)sender; 20 | - (IBAction)save:(id)sender; 21 | - (IBAction)textFieldDone:(id)sender; 22 | 23 | @end 24 | 25 | @protocol BIDPresidentDetailViewControllerDelegate 26 | 27 | - (void)presidentDetailViewController:(BIDPresidentDetailViewController *)controller 28 | didUpdatePresident:(BIDPresident *)president; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /ch07 - Pickers/Pickers/BIDDatePickerViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDDatePickerViewController.m 3 | // Pickers 4 | // 5 | 6 | #import "BIDDatePickerViewController.h" 7 | 8 | @implementation BIDDatePickerViewController 9 | 10 | - (IBAction)buttonPressed 11 | { 12 | NSDate *selected = [self.datePicker date]; 13 | NSString *message = [[NSString alloc] initWithFormat: 14 | @"The date and time you selected is: %@", selected]; 15 | UIAlertView *alert = [[UIAlertView alloc] 16 | initWithTitle:@"Date and Time Selected" 17 | message:message 18 | delegate:nil 19 | cancelButtonTitle:@"Yes, I did." 20 | otherButtonTitles:nil]; 21 | [alert show]; 22 | } 23 | 24 | - (void)viewDidLoad 25 | { 26 | [super viewDidLoad]; 27 | NSDate *now = [NSDate date]; 28 | [self.datePicker setDate:now animated:NO]; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /ch18/WhereAmI/WhereAmI/BIDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.h 3 | // WhereAmI 4 | // 5 | 6 | #import 7 | #import 8 | #import 9 | 10 | @interface BIDViewController : UIViewController 11 | 12 | @property (strong, nonatomic) CLLocationManager *locationManager; 13 | @property (strong, nonatomic) CLLocation *startPoint; 14 | @property (assign, nonatomic) CLLocationDistance totalDistance; 15 | @property (strong, nonatomic) IBOutlet UILabel *latitudeLabel; 16 | @property (strong, nonatomic) IBOutlet UILabel *longitudeLabel; 17 | @property (strong, nonatomic) IBOutlet UILabel *horizontalAccuracyLabel; 18 | @property (strong, nonatomic) IBOutlet UILabel *altitudeLabel; 19 | @property (strong, nonatomic) IBOutlet UILabel *verticalAccuracyLabel; 20 | @property (strong, nonatomic) IBOutlet UILabel *distanceTraveledLabel; 21 | 22 | @property (weak, nonatomic) IBOutlet MKMapView *mapView; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /ch13 - Persistence/Persistence/BIDFourLines.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDFourLines.m 3 | // Persistence 4 | // 5 | 6 | #import "BIDFourLines.h" 7 | 8 | static NSString * const kLinesKey = @"kLinesKey"; 9 | 10 | @implementation BIDFourLines 11 | 12 | #pragma mark - Coding 13 | 14 | - (id)initWithCoder:(NSCoder *)aDecoder 15 | { 16 | self = [super init]; 17 | if (self) { 18 | self.lines = [aDecoder decodeObjectForKey:kLinesKey]; 19 | } 20 | return self; 21 | } 22 | 23 | - (void)encodeWithCoder:(NSCoder *)aCoder; 24 | { 25 | [aCoder encodeObject:self.lines forKey:kLinesKey]; 26 | } 27 | 28 | #pragma mark - Copying 29 | 30 | - (id)copyWithZone:(NSZone *)zone; 31 | { 32 | BIDFourLines *copy = [[[self class] allocWithZone:zone] init]; 33 | NSMutableArray *linesCopy = [NSMutableArray array]; 34 | for (id line in self.lines) { 35 | [linesCopy addObject:[line copyWithZone:zone]]; 36 | } 37 | copy.lines = linesCopy; 38 | return copy; 39 | } 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /ch03/Button Fun/Button Fun/BIDViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.m 3 | // Button Fun 4 | // 5 | 6 | #import "BIDViewController.h" 7 | 8 | @implementation BIDViewController 9 | @synthesize statusLabel; 10 | 11 | - (IBAction)buttonPressed:(UIButton *)sender { 12 | NSString *title = [sender titleForState:UIControlStateNormal]; 13 | NSString *plainText = [NSString stringWithFormat:@"%@ button pressed.", title]; 14 | // statusLabel.text = plainText; 15 | 16 | NSMutableAttributedString *styledText = [[NSMutableAttributedString alloc] 17 | initWithString:plainText]; 18 | 19 | NSDictionary *attributes = @{ 20 | NSFontAttributeName : [UIFont boldSystemFontOfSize:statusLabel.font.pointSize] 21 | }; 22 | 23 | NSRange nameRange = [plainText rangeOfString:title]; 24 | 25 | [styledText setAttributes:attributes 26 | range:nameRange]; 27 | statusLabel.attributedText = styledText; 28 | } 29 | @end 30 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/LocalizeMe/fr.lproj/BIDViewController.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "IBUILabel"; text = "Labels"; ObjectID = "8"; */ 3 | "8.text" = "Labels"; 4 | 5 | /* Class = "IBUILabel"; text = "Un"; ObjectID = "15"; */ 6 | "15.text" = "Un"; 7 | 8 | /* Class = "IBUILabel"; text = "Deux"; ObjectID = "19"; */ 9 | "19.text" = "Deux"; 10 | 11 | /* Class = "IBUILabel"; text = "Trois"; ObjectID = "24"; */ 12 | "24.text" = "Trois"; 13 | 14 | /* Class = "IBUILabel"; text = "Quatre"; ObjectID = "28"; */ 15 | "28.text" = "Quatre"; 16 | 17 | /* Class = "IBUILabel"; text = "Cinq"; ObjectID = "37"; */ 18 | "37.text" = "Cinq"; 19 | 20 | /* Class = "IBUILabel"; text = ""; ObjectID = "41"; */ 21 | "41.text" = ""; 22 | 23 | /* Class = "IBUILabel"; text = ""; ObjectID = "42"; */ 24 | "42.text" = ""; 25 | 26 | /* Class = "IBUILabel"; text = ""; ObjectID = "43"; */ 27 | "43.text" = ""; 28 | 29 | /* Class = "IBUILabel"; text = ""; ObjectID = "44"; */ 30 | "44.text" = ""; 31 | 32 | /* Class = "IBUILabel"; text = ""; ObjectID = "45"; */ 33 | "45.text" = ""; 34 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/LocalizeMe/en.lproj/BIDViewController.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "IBUILabel"; text = "Labels"; ObjectID = "8"; */ 3 | "8.text" = "Labels"; 4 | 5 | /* Class = "IBUILabel"; text = "One"; ObjectID = "15"; */ 6 | "15.text" = "One"; 7 | 8 | /* Class = "IBUILabel"; text = "Two"; ObjectID = "19"; */ 9 | "19.text" = "Two"; 10 | 11 | /* Class = "IBUILabel"; text = "Three"; ObjectID = "24"; */ 12 | "24.text" = "Three"; 13 | 14 | /* Class = "IBUILabel"; text = "Four"; ObjectID = "28"; */ 15 | "28.text" = "Four"; 16 | 17 | /* Class = "IBUILabel"; text = "Five"; ObjectID = "37"; */ 18 | "37.text" = "Five"; 19 | 20 | /* Class = "IBUILabel"; text = "One"; ObjectID = "41"; */ 21 | "41.text" = "One"; 22 | 23 | /* Class = "IBUILabel"; text = "Two"; ObjectID = "42"; */ 24 | "42.text" = "Two"; 25 | 26 | /* Class = "IBUILabel"; text = "Three"; ObjectID = "43"; */ 27 | "43.text" = "Three"; 28 | 29 | /* Class = "IBUILabel"; text = "Four"; ObjectID = "44"; */ 30 | "44.text" = "Four"; 31 | 32 | /* Class = "IBUILabel"; text = "Five"; ObjectID = "45"; */ 33 | "45.text" = "Five"; 34 | -------------------------------------------------------------------------------- /ch17 - CheckPlease/CGPointUtils.c: -------------------------------------------------------------------------------- 1 | // 2 | // CGPointUtils.c 3 | // CheckPlease 4 | // 5 | 6 | #include "CGPointUtils.h" 7 | #include 8 | 9 | #define degreesToRadian(x) (M_PI * x / 180.0) 10 | #define radiansToDegrees(x) (180.0 * x / M_PI) 11 | CGFloat distanceBetweenPoints (CGPoint first, CGPoint second) { 12 | CGFloat deltaX = second.x - first.x; 13 | CGFloat deltaY = second.y - first.y; 14 | return sqrt(deltaX*deltaX + deltaY*deltaY ); 15 | }; 16 | CGFloat angleBetweenPoints(CGPoint first, CGPoint second) { 17 | CGFloat height = second.y - first.y; 18 | CGFloat width = first.x - second.x; 19 | CGFloat rads = atan(height/width); 20 | return radiansToDegrees(rads); 21 | //degs = degrees(atan((top - bottom)/(right - left))) 22 | } 23 | CGFloat angleBetweenLines(CGPoint line1Start, CGPoint line1End, CGPoint line2Start, CGPoint line2End) { 24 | 25 | CGFloat a = line1End.x - line1Start.x; 26 | CGFloat b = line1End.y - line1Start.y; 27 | CGFloat c = line2End.x - line2Start.x; 28 | CGFloat d = line2End.y - line2Start.y; 29 | 30 | CGFloat rads = acos(((a*c) + (b*d)) / ((sqrt(a*a + b*b)) * (sqrt(c*c + d*d)))); 31 | 32 | return radiansToDegrees(rads); 33 | 34 | } -------------------------------------------------------------------------------- /ch19 - Ball/Ball/Ball-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.apress.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /ch19 - MotionMonitor1/MotionMonitor/MotionMonitor-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.apress.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /ch19 - MotionMonitor2/MotionMonitor/MotionMonitor-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.apress.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /ch06/View Switcher/View Switcher/BIDBlueViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDBlueViewController.m 3 | // View Switcher 4 | // 5 | 6 | #import "BIDBlueViewController.h" 7 | 8 | @interface BIDBlueViewController () 9 | 10 | @end 11 | 12 | @implementation BIDBlueViewController 13 | 14 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil 15 | { 16 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; 17 | if (self) { 18 | // Custom initialization 19 | } 20 | return self; 21 | } 22 | 23 | - (void)viewDidLoad 24 | { 25 | [super viewDidLoad]; 26 | // Do any additional setup after loading the view. 27 | } 28 | 29 | - (void)didReceiveMemoryWarning 30 | { 31 | [super didReceiveMemoryWarning]; 32 | // Dispose of any resources that can be recreated. 33 | } 34 | 35 | - (IBAction)blueButtonPressed { 36 | UIAlertView *alert = [[UIAlertView alloc] 37 | initWithTitle:@"Blue View Button Pressed" 38 | message:@"You pressed the button on the blue view" 39 | delegate:nil 40 | cancelButtonTitle:@"Yep, I did." 41 | otherButtonTitles:nil]; 42 | [alert show]; 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /ch06/View Switcher/View Switcher/BIDYellowViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDYellowViewController.m 3 | // View Switcher 4 | // 5 | 6 | #import "BIDYellowViewController.h" 7 | 8 | @interface BIDYellowViewController () 9 | 10 | @end 11 | 12 | @implementation BIDYellowViewController 13 | 14 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil 15 | { 16 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; 17 | if (self) { 18 | // Custom initialization 19 | } 20 | return self; 21 | } 22 | 23 | - (void)viewDidLoad 24 | { 25 | [super viewDidLoad]; 26 | // Do any additional setup after loading the view. 27 | } 28 | 29 | - (void)didReceiveMemoryWarning 30 | { 31 | [super didReceiveMemoryWarning]; 32 | // Dispose of any resources that can be recreated. 33 | } 34 | 35 | - (IBAction)yellowButtonPressed { 36 | UIAlertView *alert = [[UIAlertView alloc] 37 | initWithTitle:@"Yellow View Button Pressed" 38 | message:@"You pressed the button on the yellow view" 39 | delegate:nil 40 | cancelButtonTitle:@"Yep, I did." 41 | otherButtonTitles:nil]; 42 | [alert show]; 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe/LocalizeMe/BIDViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.m 3 | // LocalizeMe 4 | // 5 | 6 | #import "BIDViewController.h" 7 | 8 | @interface BIDViewController () 9 | 10 | @end 11 | 12 | @implementation BIDViewController 13 | 14 | - (void)viewDidLoad 15 | { 16 | [super viewDidLoad]; 17 | // Do any additional setup after loading the view, typically from a nib. 18 | NSLocale *locale = [NSLocale currentLocale]; 19 | NSString *displayNameString = [locale 20 | displayNameForKey:NSLocaleIdentifier 21 | value:[locale localeIdentifier]]; 22 | self.localeLabel.text = displayNameString; 23 | 24 | [self.labels[0] setText:NSLocalizedString(@"LABEL_ONE", @"The number 1")]; 25 | [self.labels[1] setText:NSLocalizedString(@"LABEL_TWO", @"The number 2")]; 26 | [self.labels[2] setText:NSLocalizedString(@"LABEL_THREE", @"The number 3")]; 27 | [self.labels[3] setText:NSLocalizedString(@"LABEL_FOUR", @"The number 4")]; 28 | [self.labels[4] setText:NSLocalizedString(@"LABEL_FIVE", @"The number 5")]; 29 | } 30 | 31 | - (void)didReceiveMemoryWarning 32 | { 33 | [super didReceiveMemoryWarning]; 34 | // Dispose of any resources that can be recreated. 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /ch22 - LocalizeMe2/LocalizeMe/BIDViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // BIDViewController.m 3 | // LocalizeMe 4 | // 5 | 6 | #import "BIDViewController.h" 7 | 8 | @interface BIDViewController () 9 | 10 | @end 11 | 12 | @implementation BIDViewController 13 | 14 | - (void)viewDidLoad 15 | { 16 | [super viewDidLoad]; 17 | // Do any additional setup after loading the view, typically from a nib. 18 | NSLocale *locale = [NSLocale currentLocale]; 19 | NSString *displayNameString = [locale 20 | displayNameForKey:NSLocaleIdentifier 21 | value:[locale localeIdentifier]]; 22 | self.localeLabel.text = displayNameString; 23 | 24 | [self.labels[0] setText:NSLocalizedString(@"LABEL_ONE", @"The number 1")]; 25 | [self.labels[1] setText:NSLocalizedString(@"LABEL_TWO", @"The number 2")]; 26 | [self.labels[2] setText:NSLocalizedString(@"LABEL_THREE", @"The number 3")]; 27 | [self.labels[3] setText:NSLocalizedString(@"LABEL_FOUR", @"The number 4")]; 28 | [self.labels[4] setText:NSLocalizedString(@"LABEL_FIVE", @"The number 5")]; 29 | } 30 | 31 | - (void)didReceiveMemoryWarning 32 | { 33 | [super didReceiveMemoryWarning]; 34 | // Dispose of any resources that can be recreated. 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /ch05/Swap/Swap/Swap-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.apress.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /ch09 - Nav/Nav/Nav-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.apress.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /ch08 - Cells/Cells/Cells-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.apress.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | --------------------------------------------------------------------------------