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

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.2.1 and Xcode 7.3.1.

Please note that there is now a Swift 3 branch. In that branch, to date, I have revised the book 1 examples, and the book 2 examples up through book 2 chapter 4, against Xcode version 8.0 beta 3 (8S174q). Later chapters will probably compile as well, but they might not, and I don't guarantee that they will run correctly; I haven't gotten to them yet!

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