Skip to content
Downloadable code examples for my books, "iOS 9 Programming Fundamentals With Swift" (bk1) and "Programming iOS 9" (bk2). http://www.tidbits.com/matt
Swift Objective-C Other
Find file
Failed to load latest commit information.
bk1ch01p015yourFirstInstance finished revising examples through chapter 6, modernized all projects…
bk1ch01p017instanceProperties finished revising examples through chapter 6, modernized all projects…
bk1ch02p028basicFunctions finished revising examples through chapter 6, modernized all projects…
bk1ch02p032paramNames finished revising examples through chapter 6, modernized all projects…
bk1ch02p035overloading finished revising examples through chapter 6, modernized all projects…
bk1ch02p036defaultParameters more beta 6 changes: print syntax changed; variadic parameters don't …
bk1ch02p038modifiableParameters Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
bk1ch02p043recursion finished revising examples through chapter 6, modernized all projects…
bk1ch02p044functionAsValue finished revising examples through chapter 6, modernized all projects…
bk1ch02p047anonymousFunctions finished revising examples through chapter 6, modernized all projects…
bk1ch02p051defineAndCall finished revising examples through chapter 6, modernized all projects…
bk1ch02p052closures Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
bk1ch02p058closureCapture finished revising examples through chapter 6, modernized all projects…
bk1ch03p067conditionalInitialization folded in some more book code from later, added more about the "if ca…
bk1ch03p069computedVariables folded in some more book code from later, added more about the "if ca…
bk1ch03p075lazy finished revising examples through chapter 6, modernized all projects…
bk1ch03p076boolAndNumbers finished revising examples through chapter 6, modernized all projects…
bk1ch03p086string add missing string-to-integer radix example
bk1ch03p087stringUnicode improved example
bk1ch03p089strings2 finished revising examples through chapter 6, modernized all projects…
bk1ch03p092characterAndRange Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
bk1ch03p095tuple finished revising examples through chapter 6, modernized all projects…
bk1ch03p098optionals minor
bk1ch03p104optionals2 turns out we don't have to set the frame of the app's window any more
bk1ch04p115initializers Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
bk1ch04p121properties extend is now appendContentsOf (beta 6)
bk1ch04p125methods finished revising examples through chapter 6, modernized all projects…
bk1ch04p127subscripts advance is now advancedBy; split is now insertContentsOf (beta 6)
bk1ch04p132enums new material for Xcode 7 beta 5
bk1ch04p136enumInitializers finished revising examples through chapter 6, modernized all projects…
bk1ch04p140structs finished revising examples through chapter 6, modernized all projects…
bk1ch04p142valueTypesAndReferenceTypes add example of indirect case (don't know why I didn't commit this lon…
bk1ch04p149subclasses finished revising examples through chapter 6, modernized all projects…
bk1ch04p153classInitializers Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
bk1ch04p158classInitializers2 turns out we don't have to set the frame of the app's window any more
bk1ch04p162classProperties finished revising examples through chapter 6, modernized all projects…
bk1ch04p164polymorphism finished revising examples through chapter 6, modernized all projects…
bk1ch04p171typeReference finished revising examples through chapter 6, modernized all projects…
bk1ch04p172typeReference2 finished revising examples through chapter 6, modernized all projects…
bk1ch04p177protocols finished revising examples through chapter 6, modernized all projects…
bk1ch04p181optionalProtocolMembers only NSObject classes can themselves be @objc now
bk1ch04p187generics Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
bk1ch04p193whereClauses update for Xcode 7 beta 5: they moved more global functions to method…
bk1ch04p194whereClauses2 more beta 6 changes: print syntax changed; variadic parameters don't …
bk1ch04p196extensions include subclass case, with and without superclass implementation
bk1ch04p199umbrellaTypes Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
bk1ch04p204arrays demonstrate the curious behavior of popFirst()
bk1ch04p218dictionaries more beta 6 changes: print syntax changed; variadic parameters don't …
bk1ch04p222sets finished revising examples through chapter 6, modernized all projects…
bk1ch05p227branching finished revising examples through chapter 6, modernized all projects…
bk1ch05p230switch folded in some more book code from later, added more about the "if ca…
bk1ch05p237conditionalEvaluation update for Xcode 7 beta 5: they moved more global functions to method…
bk1ch05p239loops Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
bk1ch05p240error more beta 6 changes: print syntax changed; variadic parameters don't …
bk1ch05p240error2 finished revising examples through chapter 6, modernized all projects…
bk1ch05p241defer finished revising examples through chapter 6, modernized all projects…
bk1ch05p247operators finished revising examples through chapter 6, modernized all projects…
bk1ch05p247privacy extend is now appendContentsOf (beta 6)
bk1ch05p254memoryManagement a few tweaks based on proofreading of the first book
bk1ch06p297main turns out we don't have to set the frame of the app's window any more
bk1ch07p321nibLoading new dangling pointer example
bk1ch07p321nibLoading2 revised chapter 7 examples
bk1ch07p333outletCollectionAndAction revised chapter 7 examples
bk1ch07p339additionalConfiguration Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
bk1ch08p350documentation nicer formatting, match book
bk1ch09p357backwardCompatibility update for Xcode 7 beta 5: they moved more global functions to method…
bk1ch09p358universal clean up app delegates
bk1ch09p380unitTesting revising chapter 9 examples
bk1ch09p396localization minor, finishing up beta 6 changes for first book examples
bk1ch10p418subclassing update for Xcode 7 beta 5: they moved more global functions to method…
bk1ch10p428foundationClasses a few tweaks based on proofreading of the first book
bk1ch10p447accessorsAndKVC minor
bk1ch11p462notifications revised chapter 11 examples
bk1ch11p467delegation Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
bk1ch11p470dataSource revised chapter 11 examples
bk1ch11p472action Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
bk1ch11p477kvo turns out we don't have to set the frame of the app's window any more
bk1ch12p490autoreleasepool revised chapter 12 examples
bk1ch12p495danglingPointer new dangling pointer example
bk1ch12p497notificationLeaker revised chapter 12 examples
bk1ch12p498timerLeaker revised chapter 12 examples
bk1ch12p499timerLeaker2 minor, just filling out some examples
bk1ch14Appendix minor, just showing how Objective-C can see Swift
bk2ch01p004appWithoutStoryboard added the app without a storyboard example
bk2ch01p006customWindowInStoryboardApp revised chapter 5 examples
bk2ch01p009experimenting1 added the Experimenting With Views examples
bk2ch01p009experimenting2 added the Experimenting With Views examples
bk2ch01p012frame more window frames
bk2ch01p013bounds still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch01p015coordinateSpace starting to revise chapter 6 examples; new coordinate space example; …
bk2ch01p017transform still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch01p024autoresizing finished chapter 1 revisions, on to chapter 2 revisions
bk2ch01p031constraints Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
bk2ch01p032constraintSwapping extend is now appendContentsOf (beta 6)
bk2ch01p033layoutMargins still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch01p038constraintsInequalitiesAndPriorities still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch01p038evenDistribution update readme
bk2ch01p038evenDistribution2 update readme
bk2ch01p038evenDistribution3 finished chapter 1 revisions, on to chapter 2 revisions
bk2ch01p038evenDistribution4 update readme
bk2ch01p039conditionalConstraints still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch01p040sizeClasses still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch01p041constraintSwapping2 extend is now appendContentsOf (beta 6)
bk2ch01p041designableView finished chapter 1 revisions, on to chapter 2 revisions
bk2ch01p045constraintsOrderOfEvents revised book 2 chapter 1 examples
bk2ch01p046transformsAndConstraints revised book 2 chapter 1 examples
bk2ch01p046transformsAndConstraints2 revised book 2 chapter 1 examples
bk2ch02p050HiResTest2 still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch02p051ImageAndTraitCollection Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
bk2ch02p052ImageReversal finished chapter 2 revisions
bk2ch02p052mars still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch02p053marsResizable finished chapter 1 revisions, on to chapter 2 revisions
bk2ch02p056marsSlicing finished chapter 1 revisions, on to chapter 2 revisions
bk2ch02p057imageRendering finished chapter 2 revisions
bk2ch02p059sixBlueCircles starting to revise chapter 6 examples; new coordinate space example; …
bk2ch02p061imageDrawing starting to revise chapter 6 examples; new coordinate space example; …
bk2ch02p070filters still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch02p070filters2 finished updating for Xcode 7 beta 5
bk2ch02p071BlurAndVibrancy finished chapter 2 revisions
bk2ch02p077drawingInUIView Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
bk2ch02p086drawingInUIView2 starting to revise chapter 6 examples; new coordinate space example; …
bk2ch02p088clearRect starting to revise chapter 6 examples; new coordinate space example; …
bk2ch03p095layerHierarchy chapter 3 (16) examples revised
bk2ch03p101drawingIntoLayer chapter 3 (16) examples revised
bk2ch03p108compass still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch03p112layerDepth starting to revise chapter 6 examples; new coordinate space example; …
bk2ch03p113transformLayer1 still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch03p114transformLayer2 starting to revise chapter 6 examples; new coordinate space example; …
bk2ch03p116maskUtility starting to revise chapter 6 examples; new coordinate space example; …
bk2ch03p117maskUtilityView still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch04p125imageViewAnimation finished updating for Xcode 7 beta 5
bk2ch04p130viewAnimation update readme
bk2ch04p131visualEffectAnimation revised chapter 4 examples
bk2ch04p132viewAnimationFacade starting to convert chapter 4 examples
bk2ch04p133cancelAnimation add stop where you are example
bk2ch04p133cancelAnimation2 starting to convert chapter 4 examples
bk2ch04p133cancelAnimation3 revised chapter 4 examples
bk2ch04p134springing revised chapter 4 examples
bk2ch04p135keyFrameViewAnimation starting to convert chapter 4 examples
bk2ch04p137transition still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch04p138transition2 starting to convert chapter 4 examples
bk2ch04p148layerAnimation Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
bk2ch04p149keyframeSprite Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
bk2ch04p151customAnimatableProperty still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch04p153groupedAnimation starting to convert chapter 4 examples
bk2ch04p157layerTransition starting to convert chapter 4 examples
bk2ch04p160frozenAnimation starting to convert chapter 4 examples
bk2ch04p164actions revised chapter 4 examples
bk2ch04p165customAnimatableProperty2 still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch04p165customAnimatableProperty3 converted more chapter 4 examples
bk2ch04p166emitThis starting to revise chapter 6 examples; new coordinate space example; …
bk2ch04p172CIFilterAnimation finished updating for Xcode 7 beta 5
bk2ch04p175dynamics revised chapter 4 examples
bk2ch04p177dynamics2 revised chapter 4 examples
bk2ch04p178dynamics3 revised chapter 4 examples
bk2ch04p178dynamics4 add another example just for playing with fields
bk2ch04p183animationAndAutolayout continuing with chapter 6 mostly (correction to one chapter 4 example…
bk2ch04p183animationAndAutolayout2 continuing with chapter 6 mostly (correction to one chapter 4 example…
bk2ch04p183animationAndAutolayout3 correct layout command
bk2ch04p183animationAndAutolayout4 revised chapter 4 examples
bk2ch05p194touches revised chapter 5 examples
bk2ch05p203gestureRecognizers revised chapter 5 examples
bk2ch05p204dragByAttachment revised chapter 5 examples
bk2ch05p205dragByAttachment2 revised chapter 5 examples
bk2ch05p206gestureRecognizerDelegate revised chapter 5 examples
bk2ch05p207gestureRecognizersNib revised chapter 5 examples
bk2ch05p210hitTesting revised chapter 5 examples
bk2ch05p211compassTappable starting to revise chapter 6 examples; new coordinate space example; …
bk2ch05p212hitTestingDistortedLayer die CGBitmapInfo die die die
bk2ch05p213hitTestingDuringAnimation revised chapter 5 examples
bk2ch05p216exclusiveTouch revised chapter 5 examples
bk2ch05p217dependency revised chapter 5 examples
bk2ch06p236manualViewController still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch06p237manualViewController2 starting to revise chapter 6 examples; new coordinate space example; …
bk2ch06p238nibViewController1 starting to revise chapter 6 examples; new coordinate space example; …
bk2ch06p239nibViewController2 starting to revise chapter 6 examples; new coordinate space example; …
bk2ch06p239nibViewControllerWorkaround1 starting to revise chapter 6 examples; new coordinate space example; …
bk2ch06p239nibViewControllerWorkaround2 starting to revise chapter 6 examples; new coordinate space example; …
bk2ch06p239nibViewControllerWorkaround3 starting to revise chapter 6 examples; new coordinate space example; …
bk2ch06p239nibViewControllerWorkaround4 starting to revise chapter 6 examples; new coordinate space example; …
bk2ch06p239nibViewControllerWorkaround4Universal starting to revise chapter 6 examples; new coordinate space example; …
bk2ch06p239nibViewControllerWorkaround5 starting to revise chapter 6 examples; new coordinate space example; …
bk2ch06p242nibInstantiatedViewController1 slightly better placement of downcast
bk2ch06p242nibInstantiatedViewController2 slightly better placement of downcast
bk2ch06p243storyboardInstantiatedViewController still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch06p244downTheRabbitHole starting to revise chapter 6 examples; new coordinate space example; …
bk2ch06p246showHideStatusBar still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch06p250sizeChangeTest starting to revise chapter 6 examples; new coordinate space example; …
bk2ch06p253orientationsPermitted a few tweaks based on proofreading of the first book
bk2ch06p253orientationsPermitted2 starting to revise chapter 6 examples; new coordinate space example; …
bk2ch06p253orientationsPermitted3 starting to revise chapter 6 examples; new coordinate space example; …
bk2ch06p253orientationsPermitted4 a few tweaks based on proofreading of the first book
bk2ch06p255rotationChangesInterface starting to revise chapter 6 examples; new coordinate space example; …
bk2ch06p256rotationChangesInterface2 extend is now appendContentsOf (beta 6)
bk2ch06p257rotationChangesInterface3 still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch06p257rotationChangesInterface4iPad extend is now appendContentsOf (beta 6)
bk2ch06p258launchIntoRotationEvents starting to revise chapter 6 examples; new coordinate space example; …
bk2ch06p258launchIntoRotationEvents2 starting to revise chapter 6 examples; new coordinate space example; …
bk2ch06p259launchIntoRotation extend is now appendContentsOf (beta 6)
bk2ch06p264presentedViewController updating chapter 13 examples
bk2ch06p265presentedViewControllerStoryboard continuing with chapter 19
bk2ch06p270modalPresentationContext continuing with chapter 6 mostly (correction to one chapter 4 example…
bk2ch06p271presentedViewControllerAdaptive revise adaptive presentation example for iOS 9, added testbed to gene…
bk2ch06p271presentedViewControllerAdaptive2 still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch06p271presentedViewControllerAdaptive3 revise adaptive presentation example for iOS 9, added testbed to gene…
bk2ch06p272forcedRotation continuing with chapter 6 mostly (correction to one chapter 4 example…
bk2ch06p273rotationCausesPresentation still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch06p275tabbedInterface still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch06p281navigationInterface continuing with chapter 6 mostly (correction to one chapter 4 example…
bk2ch06p282navigationInterfaceStoryboard still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch06p292customAnimation1 continuing with chapter 6 mostly (correction to one chapter 4 example…
bk2ch06p296customAnimation2 continuing with chapter 6 mostly (correction to one chapter 4 example…
bk2ch06p300customAnimation3 still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch06p301customAnimation4 minor neatening
bk2ch06p302addingPresentationController still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch06p304customPresentedAnimation2 still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch06p311pageController continuing with chapter 6 mostly (correction to one chapter 4 example…
bk2ch06p313pageControllerBug continuing with chapter 6 mostly (correction to one chapter 4 example…
bk2ch06p316containerController continuing with chapter 6 mostly (correction to one chapter 4 example…
bk2ch06p319containerControllerConstraints still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch06p320containerControllerCustomAnimation still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch06p321overrideTraitCollection still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch06p322containerControllerSizeMessaging continuing with chapter 6 mostly (correction to one chapter 4 example…
bk2ch06p324containerViewControllerStoryboard finished updating examples for chapter 6
bk2ch06p325customSegue finished updating examples for chapter 6
bk2ch06p326PresentedCascadeUnwind finished updating examples for chapter 6
bk2ch06p326PresentedCascadeUnwind2 finished updating examples for chapter 6
bk2ch06p326TabbedUnwind minor neatening
bk2ch06p326unwindWithCustomParent finished updating examples for chapter 6
bk2ch06p327unwind finished updating examples for chapter 6
bk2ch06p327unwind2 finished updating examples for chapter 6
bk2ch06p332eventIncoherencies finished updating examples for chapter 6
bk2ch06p334containerEventForwarding finished updating examples for chapter 6
bk2ch06p336memoryWarning minor tweaks: expansion of memory management example, clarification o…
bk2ch06p341SimplestRestorationExample still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch06p347SimplestRestorationExample2 finished updating examples for chapter 6
bk2ch06p351pageControllerRestoration finished updating examples for chapter 6
bk2ch06p352pageControllerRestoration2 finished updating examples for chapter 6
bk2ch06p353pageControllerRestoration3 finished updating examples for chapter 6
bk2ch06p356saveAndRestoreArbitraryObject finished updating examples for chapter 6
bk2ch07p360scrollViewInCode minor formatting
bk2ch07p362scrollViewInCode2 extend is now appendContentsOf (beta 6)
bk2ch07p363scrollViewInCode3 extend is now appendContentsOf (beta 6)
bk2ch07p366scrollViewInNib minor neatening
bk2ch07p367scrollViewInNibAutolayout updating chapter 7 examples
bk2ch07p367scrollViewInNibAutolayout2 updating chapter 7 examples
bk2ch07p370contentInset extend is now appendContentsOf (beta 6)
bk2ch07p370contentInset2 extend is now appendContentsOf (beta 6)
bk2ch07p370contentInset3 updating chapter 7 examples
bk2ch07p372paging updating chapter 7 examples
bk2ch07p374scrollWithTiling updating chapter 7 examples
bk2ch07p375zoom extend is now appendContentsOf (beta 6)
bk2ch07p376zoomCentered updating chapter 7 examples
bk2ch07p376zoomCentered2 update chapter 7 examples
bk2ch07p376zoomCentered3 update chapter 7 examples
bk2ch07p378zoomDetailed update chapter 7 examples
bk2ch07p378zoomDetailed2 update chapter 7 examples
bk2ch07p383dragInScrollView die CGBitmapInfo die die die
bk2ch07p384dragInScrollView2 die CGBitmapInfo die die die
bk2ch08p398cellBackgroundLayering starting to update chapter 8 examples
bk2ch08p400separatorInset starting to update chapter 8 examples
bk2ch08p402overrideCellLayout starting to update chapter 8 examples
bk2ch08p403addCellSubviewsInCode extend is now appendContentsOf (beta 6)
bk2ch08p405addCellSubviewsInNib minor - we have now finished incorporating Xcode 7 beta 6 changes up …
bk2ch08p406addCellSubviewsNibOutlets starting to update chapter 8 examples
bk2ch08p407addCellSubviewsInStoryboard minor - we have now finished incorporating Xcode 7 beta 6 changes up …
bk2ch08p411individualCells finishing updating chapter 8 examples
bk2ch08p412SimplestDataSource minor - we have now finished incorporating Xcode 7 beta 6 changes up …
bk2ch08p416sections still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch08p424variableHeights updated chapter 8 examples some more, and miscellanous tweaks elsewhe…
bk2ch08p431pickACell updated chapter 8 examples some more, and miscellanous tweaks elsewhe…
bk2ch08p438searchableTable still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch08p438searchableTable2 still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch08p438searchableTable3 still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch08p438searchableTable4 incredibly cool new search in navigation bar example
bk2ch08p445deleteTableRows minor - we have now finished incorporating Xcode 7 beta 6 changes up …
bk2ch08p446rowActions still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch08p447editInsertAndRearrangeRows updated chapter 8 examples some more, and miscellanous tweaks elsewhe…
bk2ch08p451dynamicTableContent still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch08p453tableCellMenus still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch08p454tableCellMenus2 still updating 2nd book examples for beta 6: mostly CGRect method nam…
bk2ch08p460collectionViewCellBackgroundLayering finishing updating chapter 8 examples
bk2ch08p462collectionViewFlowLayout updated chapter 8 examples some more, and miscellanous tweaks elsewhe…
bk2ch08p466collectionViewFlowLayout2 Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
bk2ch08p467collectionViewLayoutFromScratchObjc starting to revise chapter 6 examples; new coordinate space example; …
bk2ch08p467collectionViewLayoutFromScratchSwift Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
bk2ch09p476popovers more minor neatening
bk2ch09p477popoversOnPhone minor tweaks: expansion of memory management example, clarification o…
bk2ch09p481popoverInStoryboard starting to update chapter 9 examples
bk2ch09p481popoverInStoryboard2 starting to update chapter 9 examples
bk2ch09p485PopoverPresentingViewController may have finished updating chapter 9 examples
bk2ch09p487searchInPopover may have finished updating chapter 9 examples
bk2ch09p488basicMasterDetail more neatening (not so minor: using addChild manually this way was wr…
bk2ch09p488universalSplitViewControllerStoryboardTemplateAnalysis may have finished updating chapter 9 examples
bk2ch09p489universalSplitViewControllerStoryboard2 may have finished updating chapter 9 examples
bk2ch09p490universalSplitViewControllerManual more neatening (not so minor: using addChild manually this way was wr…
bk2ch09p492TestingMultitasking use NSLog so we can read off the device console logs
bk2ch10p495TableWithDynamicType working on updating chapter 10 examples
bk2ch10p495dynamicType working on updating chapter 10 examples
bk2ch10p497downloadableFonts working on updating chapter 10 examples
bk2ch10p498fontDescriptor working on updating chapter 10 examples
bk2ch10p499fontDescriptor2 working on updating chapter 10 examples
bk2ch10p503attributedString working on updating chapter 10 examples
bk2ch10p504RTFImportTest clean up app delegates
bk2ch10p505UnderliningTest working on updating chapter 10 examples
bk2ch10p507tabStops more tweaks to updating of chapter 10 examples
bk2ch10p508AttributedTextAsSecretMarking working on updating chapter 10 examples
bk2ch10p509attributedStringDrawing working on updating chapter 10 examples
bk2ch10p510attributedStringDrawing2 working on updating chapter 10 examples
bk2ch10p510attributedStringDrawing3 working on updating chapter 10 examples
bk2ch10p511labelHighlightedTextColor working on updating chapter 10 examples
bk2ch10p512labelBreaking working on updating chapter 10 examples
bk2ch10p513selfSizingLabel working on updating chapter 10 examples
bk2ch10p513selfSizingLabel2 working on updating chapter 10 examples
bk2ch10p513selfSizingLabel3 working on updating chapter 10 examples
bk2ch10p514labelFontSizeScaling working on updating chapter 10 examples
bk2ch10p520textFieldSliding working on updating chapter 10 examples
bk2ch10p522textFieldScrollView more tweaks to updating of chapter 10 examples
bk2ch10p524keyboardAccessory more tweaks to updating of chapter 10 examples
bk2ch10p525ShortcutsBarTest clean up app delegates
bk2ch10p526textFieldDelegate more neatening, remove pyramid of death
bk2ch10p531selfSizingTextView working on updating chapter 10 examples
bk2ch10p532textViewAndKeyboard more tweaks to updating of chapter 10 examples
bk2ch10p536exclusionPath working on updating chapter 10 examples
bk2ch10p537exclusionPath2 working on updating chapter 10 examples
bk2ch10p539textKitStacks finished updating chapter 10 examples
bk2ch10p541textLayoutGeometry finished updating chapter 10 examples
bk2ch10p543drawingWithTextKit finished updating chapter 10 examples
bk2ch11p551webview finished revising chapter 11 examples
bk2ch11p552webkit minor
bk2ch11p553webkit2 finished revising chapter 11 examples
bk2ch12p564timeConsumingNavigation add circular progress view
bk2ch12p565customActivityIndicator replicator layer example
bk2ch12p566customThermometer add circular progress view
bk2ch12p567observingNSProgress simplify
bk2ch12p568pickerView finished updating chapter 12 examples
bk2ch12p573searchBarFromHell minor, just testing behavior
bk2ch12p580stepper finished updating chapter 12 examples
bk2ch12p582datePicker clean up app delegates
bk2ch12p585slider minor, just testing behavior
bk2ch12p589segmentedControl finished updating chapter 12 examples
bk2ch12p595button finished updating chapter 12 examples
bk2ch12p597knob finished updating chapter 12 examples
bk2ch12p598SliderBubble add cute example, perhaps mention this in future edition
bk2ch12p602toolbarShadowBug finished updating chapter 12 examples
bk2ch12p606navigationBar finished updating chapter 12 examples
bk2ch12p609tabBar finished updating chapter 12 examples
bk2ch12p611tabBarMore finished updating chapter 12 examples
bk2ch12p612tintColor finished updating chapter 12 examples
bk2ch13p620dialogsOniPhone updating chapter 13 examples
bk2ch13p624actionSheetPopovers updating chapter 13 examples
bk2ch13p630localNotification minor, eliminate unnecessary string coercion
bk2ch13p631todayExtension minor, eliminate unnecessary string coercion
bk2ch13p635activityView updating chapter 13 examples
bk2ch13p635activityView2 add example of UIActivityItemProvider and UIActivityItemSource; use b…
bk2ch13p636actionExtension minor tweaks
bk2ch14p640systemSound updated chapter 14 examples
bk2ch14p640systemSound2 updated chapter 14 examples
bk2ch14p643ducking minor
bk2ch14p643ducking2 show how to use MPRemoteCommandCenter
bk2ch14p653backgroundPlayerAndInterrupter minor
bk2ch14p655AVAudioEngineTest updated chapter 14 examples
bk2ch14p655MIDI clean up app delegates
bk2ch14p656textToSpeech updated chapter 14 examples
bk2ch15p659SimplestAVKit added comment-out code to show how to cover the ugly quicktime icon w…
bk2ch15p660EmbeddedAVKit updated chapter 15 examples
bk2ch15p661EmbeddedAVKit2 updated chapter 15 examples
bk2ch15p672AVKitComposition updated chapter 15 examples
bk2ch15p672playerLayer updated chapter 15 examples
bk2ch16p678mediaQuery minor, let's force unwrap these optionals
bk2ch16p687AVQueuePlayer add example of UIActivityItemProvider and UIActivityItemSource; use b…
bk2ch16p690mediaPicker finished updating chapter 16 examples
bk2ch17p697pickaMovieOrPhoto starting to update chapter 17 examples
bk2ch17p699photoKitData minor tweaks to chapter 17 examples
bk2ch17p700PhotoKitImages Remove "if var"; fix framework dependency issue
bk2ch17p702takeAPicture updated chapter 17 examples
bk2ch17p704takeAPicture2 updated chapter 17 examples
bk2ch17p707takeAPicAVFoundation updated chapter 17 examples
bk2ch18p713addressBook update address book example so that it runs, but of course this will …
bk2ch18p713addressBookNew expand contact fetching example
bk2ch19p725calendar tweaks to chapter 19 examples
bk2ch19p731reminders tweaks to chapter 19 examples
bk2ch20p740social update chapter 20 example
bk2ch21p744maps updated chapter 21 examples
bk2ch21p761userLocationAndGeocoding updated chapter 21 examples
bk2ch22p773location updated chapter 22 examples
bk2ch22p775heading tweaks to chapter 22 examples
bk2ch22p780shake updated chapter 22 examples
bk2ch22p782lyingDown tweaks to chapter 22 examples
bk2ch22p784smackMe tweaks to chapter 22 examples
bk2ch22p787gyro updated chapter 22 examples
bk2ch22p789attitudeRotation updated chapter 22 examples
bk2ch22p790motionActivity tweaks to chapter 22 examples
bk2ch23p798basicFileOperations updated chapter 23 examples
bk2ch23p802fileHandoff minor
bk2ch23p809peopleGroups updated chapter 23 examples
bk2ch23p818xml updated chapter 23 examples
bk2ch23p821SQLite updated chapter 23 examples
bk2ch23p824peopleGroupsCoreData updated chapter 23 examples
bk2ch23p829imageIO updated chapter 23 examples
bk2ch24p834simpleHTTP updated chapter 24 examples
bk2ch24p837lessSimpleHTTP updated chapter 24 examples
bk2ch24p838lessSimpleHTTP2 updated chapter 24 examples
bk2ch24p842downloader updated chapter 24 examples
bk2ch24p846backgroundDownload excellent tweaks to this example; use NSLog so we can read off the co…
bk2ch24p853bonjour updated chapter 24 examples
bk2ch25p860mandelbrotNoThreading revising chapter 25 examples
bk2ch25p862mandelbrotManualThreading revised chapter 25 examples
bk2ch25p865mandelbrotOperation revised chapter 25 examples
bk2ch25p868mandelbrotGCD revised chapter 25 examples
bk2ch26p878undoableDrag revised chapter 26 examples
bk2ch26p878undoableDrag2 revised chapter 26 examples
bk2ch26p878undoableDrag3 even better new chapter 26 example
bk2ch26p878undoableDrag4 coolest undo implementation of all
bk2ch28AppendixB Anticipate Swift 2.2 / 3: var parameters (including if var), C for lo…
iOS7bookExamples copy iOS 7 book examples off to their own folder
iOS8bookExamples copy all iOS 8 book examples into folder
README.md update readme

README.md

These are the complete downloadable code examples for my books, iOS 9 Programming Fundamentals With Swift (http://shop.oreilly.com/product/0636920044345.do) and Programming iOS 9 (http://shop.oreilly.com/product/0636920044352.do).

Examples have been revised for Swift 2.0 and Xcode 7.

If you find these examples helpful and you haven't purchased the books, please consider doing so.

The downloadable code for the two previous editions has been moved off to subfolders "iOS8bookExamples" and "iOS7bookExamples". The code for the earlier editions has been removed.

Matt Neuburg

Something went wrong with that request. Please try again.