What's New in UIKit Dynamics and Visual Effects Session 229
|
|
- Chester Long
- 6 years ago
- Views:
Transcription
1 App Frameworks #WWDC15 What's New in UIKit Dynamics and Visual Effects Session 229 Michael Turner UIKit Engineer David Duncan UIKit Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple.
2 Recommended Sessions Getting Started with UIKit Dynamics Advanced Techniques with UIKit Dynamics Creating Custom ios User Interfaces WWDC13 WWDC13 WWDC14
3 Agenda What we will cover
4 Agenda What we will cover A basic overview
5 Agenda What we will cover A basic overview What s new in UIKit Dynamics
6 Agenda What we will cover A basic overview What s new in UIKit Dynamics Utilizing UIVisualEffectView in your app
7 Agenda What we will cover A basic overview What s new in UIKit Dynamics Utilizing UIVisualEffectView in your app Best practices for working with UIKit Dynamics and Auto Layout
8 UIKit Dynamics
9 UIKit Dynamics 2D Physics-inspired animation system
10 UIKit Dynamics 2D Physics-inspired animation system Composable and declarative
11 UIKit Dynamics 2D Physics-inspired animation system Composable and declarative Not a replacement for Core Animation or UIView animations
12 UIKit Dynamics Sliding example
13 UIKit Dynamics Sliding example
14 UIKit Dynamics Sliding example
15 UIKit Dynamics Sliding example Define the coordinate system
16 UIKit Dynamics Sliding example Define the coordinate system Provide the overall context for animation UIDynamicAnimator
17 UIKit Dynamics Sliding example Define the coordinate system Provide the overall context for animation Keep track of behaviors UIDynamicAnimator SlidingBehavior
18 UIKit Dynamics Sliding example Define the coordinate system Provide the overall context for animation Keep track of behaviors UIDynamicAnimator SlidingBehavior UIGravityBehavior UICollisionBehavior UIAttachmentBehavior
19 UIKit Dynamics Sliding example Define the coordinate system Provide the overall context for animation Keep track of behaviors UIDynamicItems are associated with one or more behaviors UIDynamicAnimator SlidingBehavior UIGravityBehavior UICollisionBehavior UIAttachmentBehavior UIView
20 UIKit Dynamics What s new
21 UIKit Dynamics What s new Support for non-rectangular collision bounds
22 UIKit Dynamics What s new Support for non-rectangular collision bounds UIDynamicItemGroup
23 UIKit Dynamics What s new Support for non-rectangular collision bounds UIDynamicItemGroup UIFieldBehavior models vector force fields
24 UIKit Dynamics What s new Support for non-rectangular collision bounds UIDynamicItemGroup UIFieldBehavior models vector force fields UIDynamicItemBehavior
25 UIKit Dynamics What s new Support for non-rectangular collision bounds UIDynamicItemGroup UIFieldBehavior models vector force fields UIDynamicItemBehavior UISnapBehavior
26 UIKit Dynamics What s new Support for non-rectangular collision bounds UIDynamicItemGroup UIFieldBehavior models vector force fields UIDynamicItemBehavior UISnapBehavior UIAttachmentBehavior
27 UIKit Dynamics What s new Support for non-rectangular collision bounds UIDynamicItemGroup UIFieldBehavior models vector force fields UIDynamicItemBehavior UISnapBehavior UIAttachmentBehavior New ways to debug dynamic animations
28 Collision Bounds UIDynamicItem
29 Collision Bounds UIDynamicItem enum UIDynamicItemCollisionBoundsType : UInt { }
30 Collision Bounds UIDynamicItem enum UIDynamicItemCollisionBoundsType : UInt { case Rectangle }
31 Collision Bounds UIDynamicItem enum UIDynamicItemCollisionBoundsType : UInt { case Rectangle case Ellipse }
32 Collision Bounds UIDynamicItem enum UIDynamicItemCollisionBoundsType : UInt { case Rectangle case Ellipse case Path }
33 Collision Bounds UIDynamicItem enum UIDynamicItemCollisionBoundsType : UInt { case Rectangle case Ellipse case Path } protocol UIDynamicItem : NSObjectProtocol { var center: CGPoint { get set } var bounds: CGRect { get } var transform: CGAffineTransform { get set } }
34 Collision Bounds UIDynamicItem enum UIDynamicItemCollisionBoundsType : UInt { case Rectangle case Ellipse case Path } protocol UIDynamicItem : NSObjectProtocol { var center: CGPoint { get set } var bounds: CGRect { get } var transform: CGAffineTransform { get set } } optional var collisionboundstype: UIDynamicItemCollisionBoundsType { get } optional var collisionboundingpath: UIBezierPath { get }
35 Collision Bounds UIDynamicItem enum UIDynamicItemCollisionBoundsType : UInt { case Rectangle case Ellipse case Path } protocol UIDynamicItem : NSObjectProtocol { var center: CGPoint { get set } var bounds: CGRect { get } var transform: CGAffineTransform { get set } } optional var collisionboundstype: UIDynamicItemCollisionBoundsType { get } optional var collisionboundingpath: UIBezierPath { get }
36 UIDynamicItemCollisionBoundsType Path Convex Convex Counter-clockwise wound Non-self intersecting Concave
37 UIDynamicItemGroup Individual Items UIDynamicItemGroup
38 UIDynamicItemGroup Makes multiple dynamic items behave as one Individual Items UIDynamicItemGroup
39 UIDynamicItemGroup Makes multiple dynamic items behave as one Individual Items UIDynamicItemGroup Preserves the individual collision bounds
40 UIDynamicItemGroup Makes multiple dynamic items behave as one Individual Items UIDynamicItemGroup Preserves the individual collision bounds Dynamic items in a group must not be added to behaviors individually
41 UIDynamicItemGroup Makes multiple dynamic items behave as one Individual Items UIDynamicItemGroup Preserves the individual collision bounds Dynamic items in a group must not be added to behaviors individually A group cannot contain other groups
42 UIDynamicItemGroup Makes multiple dynamic items behave as one Individual Items UIDynamicItemGroup Preserves the individual collision bounds Dynamic items in a group must not be added to behaviors individually A group cannot contain other groups Concave or other complex shapes are possible
43 UIKit Dynamics Force example
44 UIKit Dynamics Force example
45 UIKit Dynamics Force example
46 UIKit Dynamics Force example A force is modeled as a vector
47 UIKit Dynamics Force example A force is modeled as a vector Length and direction
48 UIKit Dynamics Force example A force is modeled as a vector Length and direction UIPushBehavior applies a force
49 UIKit Dynamics Force example A force is modeled as a vector Length and direction UIPushBehavior applies a force Continuous
50 UIKit Dynamics Force example A force is modeled as a vector Length and direction UIPushBehavior applies a force Continuous Instantaneous
51 UIKit Dynamics Force example A force is modeled as a vector Length and direction UIPushBehavior applies a force Continuous Instantaneous
52 UIKit Dynamics Force example
53 UIKit Dynamics Force example Vertical motion over time of the sliding view y Time
54 UIKit Dynamics Force example Vertical motion over time of the sliding view Initial Impulse applied y Time
55 UIKit Dynamics Force example Vertical motion over time of the sliding view Initial Impulse applied Gravity causes the view s velocity to slow y and eventually reverse direction Time
56 Physics Fields Linear Gravity as a field Linear Gravity Field
57 Physics Fields Linear Gravity as a field A function that assigns a vector to each point in a domain Linear Gravity Field
58 UIFieldBehavior
59 UIFieldBehavior UIFieldBehavior can be added to a region of your view UIRegion Lines of force
60 UIFieldBehavior UIFieldBehavior can be added to a region of your view UIRegion The field is evaluated at each point within the region Lines of force
61 UIFieldBehavior UIFieldBehavior can be added to a region of your view UIRegion The field is evaluated at each point within the region Resulting forces are applied by the animator Lines of force
62 UIFieldBehavior UIFieldBehavior can be added to a region of your view UIRegion The field is evaluated at each point within the region Resulting forces are applied by the animator UIGravityBehavior is a field already! Lines of force
63 UIFieldBehavior UIFieldBehavior can be added to a region of your view UIRegion The field is evaluated at each point within the region Resulting forces are applied by the animator UIGravityBehavior is a field already! Simplified physics, well-tuned for performance; not useful for building interstellar space stations Lines of force
64 UIFieldBehavior Linear Gravity Radial Gravity Noise Custom Drag and Velocity, Vortex, Turbulence, Spring, Electric and Magnetic
65 UIFieldBehavior Linear Gravity
66 UIFieldBehavior Linear Gravity Field properties var region: UIRegion var direction: CGVector var strength: CGFloat
67 UIFieldBehavior Radial Gravity
68 UIFieldBehavior Radial Gravity Field properties var position: CGPoint var region: UIRegion var strength: CGFloat var falloff: CGFloat var minimumradius: CGFloat
69 UIFieldBehavior Noise
70 UIFieldBehavior Noise Field properties var region: UIRegion var strength: CGFloat var smoothness: CGFloat var animationspeed: CGFloat
71 UIFieldBehavior Custom
72 UIFieldBehavior Custom Field Sample position velocity mass charge time
73 Demo UIKit Dynamics StickyCorners
74 Debugging UIKit Dynamics
75 Debugging UIKit Dynamics Overlay to show Physics
76 Debugging UIKit Dynamics Overlay to show Physics Visualize fields, collision bounds, and attachments
77 Debugging UIKit Dynamics Overlay to show Physics Visualize fields, collision bounds, and attachments Not API, but accessible in lldb
78 Debugging UIKit Dynamics Overlay to show Physics Visualize fields, collision bounds, and attachments Not API, but accessible in lldb debugenabled
79 Debugging UIKit Dynamics Overlay to show Physics Visualize fields, collision bounds, and attachments Not API, but accessible in lldb debugenabled debuginterval
80 Debugging UIKit Dynamics Overlay to show Physics Visualize fields, collision bounds, and attachments Not API, but accessible in lldb debugenabled debuginterval debuganimationspeed
81 UIDynamicItemBehavior
82 UIDynamicItemBehavior Customize physical properties
83 UIDynamicItemBehavior Customize physical properties Applied to one or more items
84 UIDynamicItemBehavior Customize physical properties Applied to one or more items var elasticity: CGFloat var friction: CGFloat var density: CGFloat var resistance: CGFloat var angularresistance: CGFloat
85 UIDynamicItemBehavior Customize physical properties Applied to one or more items var var var var var var charge: CGFloat var anchored: Bool
86 UIAttachmentBehavior
87 UIAttachmentBehavior Distance attachment
88 UIAttachmentBehavior Distance attachment Customizable Damping and Frequency
89 UIAttachmentBehavior
90 UIAttachmentBehavior Limit Attachment
91 UIAttachmentBehavior Limit Attachment Behaves like a rope between items
92 UIAttachmentBehavior Limit Attachment Behaves like a rope between items Attachment point offset from each item s center
93 UIAttachmentBehavior
94 UIAttachmentBehavior Fixed Attachment
95 UIAttachmentBehavior Fixed Attachment Items positioned with respect to the attachment anchor point Attachment anchor
96 UIAttachmentBehavior Fixed Attachment Items positioned with respect to the attachment anchor point No relative movement Attachment anchor
97 UIAttachmentBehavior
98 UIAttachmentBehavior Pin Attachment
99 UIAttachmentBehavior Pin Attachment Items positioned with respect to the attachment anchor point Attachment anchor
100 UIAttachmentBehavior Pin Attachment Items positioned with respect to the attachment anchor point Specify a rotatable range Range Attachment anchor
101 UIAttachmentBehavior Pin Attachment Items positioned with respect to the attachment anchor point Specify a rotatable range Range Attachment anchor
102 UIAttachmentBehavior
103 UIAttachmentBehavior Sliding Attachment
104 UIAttachmentBehavior Sliding Attachment Items positioned with respect to the attachment anchor point Attachment anchor
105 UIAttachmentBehavior Axis of translation Sliding Attachment Items positioned with respect to the attachment anchor point Allows only relative translation along a specified axis Attachment anchor
106 UIAttachmentBehavior Axis of translation Sliding Attachment Items positioned with respect to the attachment anchor point Allows only relative translation along a specified axis Prevents relative rotation of the Attachment anchor dynamic items
107 UIAttachmentBehavior Axis of translation Sliding Attachment Items positioned with respect to the attachment anchor point Allows only relative translation Range along a specified axis Prevents relative rotation of the Attachment anchor dynamic items Specify a translatable range
108 UIAttachmentBehavior Axis of translation Sliding Attachment Items positioned with respect to the attachment anchor point Allows only relative translation Range along a specified axis Prevents relative rotation of the Attachment anchor dynamic items Specify a translatable range
109
110
111 UISnapBehavior
112 UISnapBehavior Snap a view in place
113 UISnapBehavior Snap a view in place Customizable damping
114 UISnapBehavior Snap a view in place Customizable damping Customizable snappoint
115 UISnapBehavior Snap a view in place Customizable damping Customizable snappoint
116 Visual Effects Adding style to your app David Duncan UIKit Engineer
117 UIVisualEffectView Stylish Overlays
118 UIVisualEffectView UIBlurEffect enum UIBlurEffectStyle : Int { case ExtraLight case Light case Dark } let blureffect = UIBlurEffect(style:.ExtraLight) let blurview = UIVisualEffectView(effect: blureffect)
119 UIVisualEffectView UIBlurEffect enum UIBlurEffectStyle : Int { case ExtraLight case Light case Dark } let blureffect = UIBlurEffect(style:.ExtraLight) let blurview = UIVisualEffectView(effect: blureffect)
120 UIVisualEffectView UIBlurEffect enum UIBlurEffectStyle : Int { case ExtraLight case Light case Dark } let blureffect = UIBlurEffect(style:.ExtraLight) let blurview = UIVisualEffectView(effect: blureffect)
121 UIVisualEffectView UIBlurEffect enum UIBlurEffectStyle : Int { case ExtraLight case Light case Dark } let blureffect = UIBlurEffect(style:.ExtraLight) let blurview = UIVisualEffectView(effect: blureffect)
122 UIVisualEffectView UIVibrancyEffect let vibrancyeffect = UIVibrancyEffect(forBlurEffect: blureffect) let vibrancyview = UIVisualEffectView(effect:vibrancyEffect) blurview.contentview.addsubview(vibrancyview) vibrancyview.contentview.addsubview(label)
123 UIVisualEffectView UIVibrancyEffect let vibrancyeffect = UIVibrancyEffect(forBlurEffect: blureffect) let vibrancyview = UIVisualEffectView(effect:vibrancyEffect) blurview.contentview.addsubview(vibrancyview) vibrancyview.contentview.addsubview(label)
124 UIVisualEffectView UIVibrancyEffect let vibrancyeffect = UIVibrancyEffect(forBlurEffect: blureffect) let vibrancyview = UIVisualEffectView(effect:vibrancyEffect) blurview.contentview.addsubview(vibrancyview) vibrancyview.contentview.addsubview(label)
125 UIVisualEffectView UIVibrancyEffect let vibrancyeffect = UIVibrancyEffect(forBlurEffect: blureffect) let vibrancyview = UIVisualEffectView(effect:vibrancyEffect) blurview.contentview.addsubview(vibrancyview) vibrancyview.contentview.addsubview(label)
126 UIVisualEffectView UIVibrancyEffect let vibrancyeffect = UIVibrancyEffect(forBlurEffect: blureffect) let vibrancyview = UIVisualEffectView(effect:vibrancyEffect) blurview.contentview.addsubview(vibrancyview) vibrancyview.contentview.addsubview(label)
127 UIVisualEffectView And action!
128 UIVisualEffectView And action! Bounds
129 UIVisualEffectView And action! Bounds Effect
130 UIVisualEffectView Anatomy of an effect
131 UIVisualEffectView Anatomy of an effect Capture Area
132 UIVisualEffectView Anatomy of an effect Capture Area
133 UIVisualEffectView Anatomy of an effect Capture Area
134 UIVisualEffectView Anatomy of an effect Capture Area Apply Effect
135 UIVisualEffectView Anatomy of an effect Capture Area Apply Effect
136 UIVisualEffectView Anatomy of an effect Capture Area Apply Effect Copy Back
137 UIVisualEffectView Anatomy of an effect Capture Area Apply Effect Copy Back Offscreen Pass
138 UIVisualEffectView Offscreen Passes Alpha Masking Blur Vibrancy Snapshotting
139 UIVisualEffectView Offscreen Passes Alpha Masking Blur Vibrancy Snapshotting UIView.snapshotViewAfterScreenUpdates(afterUpdates:) UIView.drawViewHierarchyInRect(rect:, afterscreenupdates:) UIScreen.snapshotViewAfterScreenUpdates()
140 UIVisualEffectView Offscreen Passes Alpha Masking Blur Vibrancy Snapshotting UIView.snapshotViewAfterScreenUpdates(afterUpdates:) UIView.drawViewHierarchyInRect(rect:, afterscreenupdates:) UIScreen.snapshotViewAfterScreenUpdates()
141 UIVisualEffectView Anatomy of a broken effect VisualEffectView/Blur
142 UIVisualEffectView Anatomy of a broken effect Capture Area
143 UIVisualEffectView Anatomy of a broken effect Capture Area
144 UIVisualEffectView Anatomy of a broken effect Capture Area
145 UIVisualEffectView Anatomy of a broken effect Capture Area Nothing!
146 UIVisualEffectView Fixing broken effects
147 UIVisualEffectView Fixing broken effects For help in lldb - (NSString *)_whatswrongwiththiseffect
148 UIVisualEffectView Fixing broken effects For help in lldb - (NSString *)_whatswrongwiththiseffect (lldb) po [myeffectview _whatswrongwiththiseffect]
149 UIVisualEffectView Fixing broken effects For help in lldb - (NSString *)_whatswrongwiththiseffect (lldb) po [myeffectview _whatswrongwiththiseffect] ISSUE: One or more masking superviews have been found. <UIView: 0x7fa ; frame = (0 0; 0 0); layer = <CALayer: 0x7fa03050b190>> UIVisualEffectView cannot be masked, you will need to isolate this effect view into a hierarchy that is not masked or not use masks.
150 UIVisualEffectView Fixing broken effects Rearrange view hierarchy Effective for Alpha and Masking Root Container apply alpha or masking Blur Content
151 UIVisualEffectView Fixing broken effects Rearrange view hierarchy Effective for Alpha and Masking Root Blur Container apply alpha or masking Content
152 UIVisualEffectView Fixing broken effects Rearrange view hierarchy Effective for Alpha and Masking Root Blur Container apply alpha or masking Content
153 UIVisualEffectView Fixing broken effects Mask views individually Container mask added Content Blur Content
154 UIVisualEffectView Fixing broken effects Mask views individually Container Content Blur Content
155 UIVisualEffectView Fixing broken effects Mask views individually Container Content Blur Content mask added
156 UIVisualEffectView Fixing broken effects Snapshot the window or screen Screen Window Content Content View Snapshot requested Blur
157 UIVisualEffectView Fixing broken effects Snapshot the window or screen Screen Window View Snapshot requested Content Content Blur
158 UIVisualEffectView Fixing broken effects Snapshot the window or screen Screen Window View Snapshot requested Content Content Blur
159 UIVisualEffectView Fixing broken effects Snapshot the window or screen Screen View Screen Snapshot requested Window Content Content Blur
160 UIKit Dynamics and Auto Layout
161 UIKit Dynamics and Auto Layout Follow via Auto Layout UIKit Dynamics outside dynamicsview.translatesautoresizingmaskintoconstraints = true Auto Layout inside innerview.leadinganchor.constraintequaltoanchor(dynamicsview.leadinganchor)
162 UIKit Dynamics and Auto Layout Follow via Auto Layout Lola 011.jpg
163 UIKit Dynamics and Auto Layout Follow via Auto Layout Lola 011.jpg
164 UIKit Dynamics and Auto Layout Custom UIDynamicItem
165 UIKit Dynamics and Auto Layout Custom UIDynamicItem Subclass NSObject
166 UIKit Dynamics and Auto Layout Custom UIDynamicItem Subclass NSObject Conform to UIDynamicItem
167 UIKit Dynamics and Auto Layout Custom UIDynamicItem Subclass NSObject Conform to UIDynamicItem Provide.bounds
168 UIKit Dynamics and Auto Layout Custom UIDynamicItem Subclass NSObject Conform to UIDynamicItem Provide.bounds Update constraints when.center and.transform change
169 Demo UIKit Dynamics and Auto Layout
170 Summary Focus on the user experience Always consider performance impact when adding advanced effects
171 Related Sessions and Labs Getting Started with Multitasking on ipad in ios 9 Presidio Tuesday 4:30PM Multitasking Essentials for Media-Based Apps on ipad in ios 9 Pacific Heights Wednesday 2:30PM Optimizing Your App for Multitasking on ipad in ios 9 Presidio Wednesday 3:30PM Mysteries of Auto Layout, Part 1 Presidio Thursday 11:00AM Mysteries of Auto Layout, Part 2 Presidio Thursday 1:30PM Building Responsive and Efficient Apps with GCD Nob Hill Friday 10:00AM UIKit and UIKit Dynamics Lab Frameworks Lab C Friday 11:00AM
172 More Information Documentation UIDynamicAnimator Class Reference UIFieldBehavior Class Reference Technical Support Apple Developer Forums Developer Technical Support UIDynamicBehavior Class Reference UIAttachmentBehavior Class Reference Curt Rothert Sample Code StickyCorners App Frameworks Evangelist
173
Stanford CS193p. Developing Applications for ios. Winter CS193p. Winter 2017
Stanford Developing Applications for ios Today Timer Periodically execute a block of code Blinking FaceIt Demo Animation Animating changes to UIViews Smoother Blinking FaceIt Head-shaking FaceIt Animating
More informationModern User Interaction on ios
App Frameworks #WWDC17 Modern User Interaction on ios Mastering the UIKit UIGesture System Session 219 Dominik Wagner, UIKit Engineer Michael Turner, UIKit Engineer Glen Low, UIKit Engineer 2017 Apple
More informationBuilding Watch Apps #WWDC15. Featured. Session 108. Neil Desai watchos Engineer
Featured #WWDC15 Building Watch Apps Session 108 Neil Desai watchos Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. Agenda
More informationWhat s New in tvos 12
#WWDC18 What s New in tvos 12 Session 208 Hans Kim, tvos Engineering 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. Agenda Agenda
More informationAdopting Advanced Features of the New UI
Frameworks #WWDC14 Adopting Advanced Features of the New UI Session 220 Chris Dreessen AppKit Software Engineer! Corbin Dunn AppKit Software Engineer 2014 Apple Inc. All rights reserved. Redistribution
More informationSAMPLE CHAPTER. Brendan G. Lim Martin Conte Mac Donell MANNING
SAMPLE CHAPTER Brendan G. Lim Martin Conte Mac Donell MANNING ios 7 in Action by Brendan G. Lim Martin Conte Mac Donell Chapter 14 Copyright 2014 Manning Publications brief contents PART 1 BASICS AND NECESSITIES...1
More informationWhat s New in SpriteKit
Graphics and Games #WWDC14 What s New in SpriteKit Session 606 Norman Wang Game Technologies 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission
More informationMastering UIKit on tvos
App Frameworks #WWDC16 Mastering UIKit on tvos Session 210 Justin Voss UIKit Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from
More informationios Accessibility Developing for everyone Session 201 Ian Fisch ios Accessibility
App Frameworks #WWDC15 ios Accessibility Developing for everyone Session 201 Ian Fisch ios Accessibility 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written
More informationAccessibility on OS X
Frameworks #WWDC14 Accessibility on OS X New Accessibility API Session 207 Patti Hoa Accessibility Engineer! Chris Dolan Accessibility Engineer 2014 Apple Inc. All rights reserved. Redistribution or public
More informationLeveraging Touch Input on ios
App Frameworks #WWDC16 Leveraging Touch Input on ios And getting the most out of Apple Pencil Session 220 Dominik Wagner UIKit Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display
More informationNew UIKit Support for International User Interfaces
App Frameworks #WWDC15 New UIKit Support for International User Interfaces Session 222 Sara Radi Internationalization Software Engineer Aaltan Ahmad Internationalization Software Engineer Paul Borokhov
More informationUsing and Extending the Xcode Source Editor
Developer Tools #WWDC16 Using and Extending the Xcode Source Editor Session 414 Mike Swingler Xcode Infrastructure and Editors Chris Hanson Xcode Infrastructure and Editors 2016 Apple Inc. All rights reserved.
More informationCocoa Touch Best Practices
App Frameworks #WWDC15 Cocoa Touch Best Practices Session 231 Luke Hiesterman UIKit Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission
More informationView Controller Advancements for ios8
Frameworks #WWDC14 View Controller Advancements for ios8 Session 214 Bruce D. Nilo Manager, UIKit Fundamentals 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without
More informationios Mobile Development
ios Mobile Development Today Protocols How to make id a little bit safer. Blocks Passing a block of code as an argument to a method. Animation Dynamic Animator View property animation Demo Dropit! Protocols
More informationWhat s New in Xcode App Signing
Developer Tools #WWDC16 What s New in Xcode App Signing Developing and distributing Session 401 Joshua Pennington Tools Engineering Manager Itai Rom Tools Engineer 2016 Apple Inc. All rights reserved.
More informationWhat s New in NSCollectionView Session 225
App Frameworks #WWDC15 What s New in NSCollectionView Session 225 Troy Stephens Application Frameworks Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without
More informationMonetize and Promote Your App with iad
Media #WWDC15 Monetize and Promote Your App with iad From design to launch Session 503 Carol Teng Shashank Phadke 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without
More informationImplementing UI Designs in Interface Builder
Developer Tools #WWDC15 Implementing UI Designs in Interface Builder Session 407 Kevin Cathey Interface Builder Engineer Tony Ricciardi Interface Builder Engineer 2015 Apple Inc. All rights reserved. Redistribution
More informationWhat s New in tvos #WWDC16. App Frameworks. Session 206. Hans Kim tvos Engineer
App Frameworks #WWDC16 What s New in tvos Session 206 Hans Kim tvos Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. Welcome
More informationEnhancing your apps for the next dimension of touch
App Frameworks #WWDC16 A Peek at 3D Touch Enhancing your apps for the next dimension of touch Session 228 Tyler Fox UIKit Frameworks Engineer Peter Hajas UIKit Frameworks Engineer 2016 Apple Inc. All rights
More informationCreating Complications with ClockKit Session 209
App Frameworks #WWDC15 Creating Complications with ClockKit Session 209 Eliza Block watchos Engineer Paul Salzman watchos Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display
More informationMysteries of Auto Layout, Part 1
App Frameworks #WWDC15 Mysteries of Auto Layout, Part 1 Session 218 Jason Yao Interface Builder Engineer Kasia Wawer ios Keyboards Engineer 2015 Apple Inc. All rights reserved. Redistribution or public
More informationAdvanced Scrollviews and Touch Handling Techniques
Frameworks #WWDC14 Advanced Scrollviews and Touch Handling Techniques Session 235 Josh Shaffer ios Apps and Frameworks Engineer Eliza Block ios Apps and Frameworks Engineer 2014 Apple Inc. All rights reserved.
More informationData Delivery with Drag and Drop
Session App Frameworks #WWDC17 Data Delivery with Drag and Drop 227 Dave Rahardja, UIKit Tanu Singhal, UIKit 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without
More informationMastering Drag and Drop
Session App Frameworks #WWDC17 Mastering Drag and Drop 213 Tom Adriaenssen, UIKit Wenson Hsieh, WebKit Robb Böhnke, UIKit 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted
More informationIntroducing On Demand Resources
App Frameworks #WWDC15 Introducing On Demand Resources An element of App Thinning Session 214 Steve Lewallen Frameworks Engineering Tony Parker Cocoa Frameworks 2015 Apple Inc. All rights reserved. Redistribution
More informationWatchKit In-Depth, Part 2
App Frameworks #WWDC15 WatchKit In-Depth, Part 2 Session 208 Nathan de Vries watchos Engineer Chloe Chang watchos Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted
More informationAccessibility on ios. Developing for everyone. Frameworks #WWDC14. Session 210 Clare Kasemset ios Accessibility
Frameworks #WWDC14 Accessibility on ios Developing for everyone Session 210 Clare Kasemset ios Accessibility 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without
More informationExtending Your Apps with SiriKit
App Frameworks #WWDC16 Extending Your Apps with SiriKit Session 225 Vineet Khosla SiriKit Engineering Diana Huang SiriKit Engineering Scott Andrus SiriKit Engineering 2016 Apple Inc. All rights reserved.
More informationIntroducing the Modern WebKit API
Frameworks #WWDC14 Introducing the Modern WebKit API Session 206 Anders Carlsson Safari and WebKit Engineer 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written
More informationSwift API Design Guidelines
Developer Tools #WWDC16 Swift API Design Guidelines The Grand Renaming Session 403 Doug Gregor Swift Engineer Michael Ilseman Swift Engineer 2016 Apple Inc. All rights reserved. Redistribution or public
More informationQuick Interaction Techniques for watchos
App Frameworks #WWDC16 Quick Interaction Techniques for watchos Session 211 Tom Witkin watchos Engineer Miguel Sanchez watchos Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display
More informationMastering Xcode for iphone OS Development Part 1. Todd Fernandez Sr. Manager, IDEs
Mastering Xcode for iphone OS Development Part 1 Todd Fernandez Sr. Manager, IDEs 2 3 Customer Reviews Write a Review Current Version (1) All Versions (24) Gorgeous and Addictive Report a Concern by Play
More informationlecture 10 UI/UX and Programmatic Design cs : spring 2018
lecture 10 UI/UX and Programmatic Design cs198-001 : spring 2018 1 Announcements custom app progress form due before lab (~1 minute) will be released after lecture only 2 labs left (both very important)
More informationWhat s New in imessage Apps
Session App Frameworks #WWDC17 What s New in imessage Apps 234 Eugene Bistolas, Messages Engineer Jay Chae, Messages Engineer Stephen Lottermoser, Messages Engineer 2017 Apple Inc. All rights reserved.
More informationCreating Content with iad JS
Creating Content with iad JS Part 2 The iad JS Framework Antoine Quint iad JS Software Engineer ios Apps and Frameworks 2 Agenda Motivations and Features of iad JS Core JavaScript Enhancements Working
More informationMastering Xcode for iphone OS Development Part 2. Marc Verstaen Sr. Manager, iphone Tools
Mastering Xcode for iphone OS Development Part 2 Marc Verstaen Sr. Manager, iphone Tools 2 Tale of Two Sessions Part 1: Orientation: Tour of complete development cycle Part 2: Mastery: Details of several
More informationGetting the Most out of Playgrounds in Xcode
#WWDC18 Getting the Most out of Playgrounds in Xcode Session 402 Tibet Rooney-Rabdau, Xcode Engineer Alex Brown, Core OS Engineer TJ Usiyan, Xcode Engineer 2018 Apple Inc. All rights reserved. Redistribution
More informationStanford CS193p. Developing Applications for ios. Spring CS193p. Spring 2016
Stanford Developing Applications for ios Today Views Custom Drawing Demo FaceView Views A view (i.e. UIView subclass) represents a rectangular area Defines a coordinate space For drawing And for handling
More informationStanford CS193p. Developing Applications for ios. Winter CS193p. Winter 2017
Stanford Developing Applications for ios Today Views Custom Drawing Demo FaceView Views A view (i.e. UIView subclass) represents a rectangular area Defines a coordinate space For drawing And for handling
More informationDesigning for Apple Watch
Design #WWDC15 Designing for Apple Watch Session 802 Mike Stern User Experience Evangelist 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission
More informationWhat s New in LLDB. Debug your way to fame and glory #WWDC15. Developer Tools. Session 402
Developer Tools #WWDC15 What s New in LLDB Debug your way to fame and glory Session 402 Kate Stone Software Behavioralist Sean Callanan Master of Expressions Enrico Granata Data Wizard 2015 Apple Inc.
More informationWhat s New in SpriteKit
Graphics and Games #WWDC16 What s New in SpriteKit Session 610 Ross Dexter Games Technologies Engineer Clément Boissière Games Technologies Engineer 2016 Apple Inc. All rights reserved. Redistribution
More informationMedia and Gaming Accessibility
Session System Frameworks #WWDC17 Media and Gaming Accessibility 217 Greg Hughes, Software Engineering Manager Charlotte Hill, Software Engineer 2017 Apple Inc. All rights reserved. Redistribution or public
More informationAdapting to the New UI of OS X Yosemite
Frameworks #WWDC14 Adapting to the New UI of OS X Yosemite Session 209 Mike Stern User Experience Evangelist! Rachel Goldeen Cocoa Software Engineer! Patrick Heynen Cocoa Engineering Manager 2014 Apple
More informationBuilding Visually Rich User Experiences
Session App Frameworks #WWDC17 Building Visually Rich User Experiences 235 Noah Witherspoon, Software Engineer Warren Moore, Software Engineer 2017 Apple Inc. All rights reserved. Redistribution or public
More informationImproving your Existing Apps with Swift
Developer Tools #WWDC15 Improving your Existing Apps with Swift Getting Swifty with It Session 403 Woody L. in the Sea of Swift 2015 Apple Inc. All rights reserved. Redistribution or public display not
More informationAdvanced Debugging and the Address Sanitizer
Developer Tools #WWDC15 Advanced Debugging and the Address Sanitizer Finding your undocumented features Session 413 Mike Swingler Xcode UI Infrastructure Anna Zaks LLVM Program Analysis 2015 Apple Inc.
More informationStoryboards and Controllers on OS X
Frameworks #WWDC14 Storyboards and Controllers on OS X Contain yourself Session 212 Mike Swingler Interface Builder Engineer Raleigh Ledet AppKit Engineer 2014 Apple Inc. All rights reserved. Redistribution
More informationStanford CS193p. Developing Applications for ios. Fall Stanford CS193p. Fall 2011
Developing Applications for ios Views A view (i.e. UIView subclass) represents a rectangular area Defines a coordinate space Draws and handles events in that rectangle Hierarchical A view has only one
More informationWhat s New in Metal, Part 2
Graphics and Games #WWDC15 What s New in Metal, Part 2 Session 607 Dan Omachi GPU Software Frameworks Engineer Anna Tikhonova GPU Software Frameworks Engineer 2015 Apple Inc. All rights reserved. Redistribution
More informationWhat s New in MapKit. App Frameworks #WWDC17. Fredrik Olsson
Session App Frameworks #WWDC17 What s New in MapKit 237 Fredrik Olsson 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. MKMapView.mapType.standard
More informationIntegrating Apps and Content with AR Quick Look
Session #WWDC18 Integrating Apps and Content with AR Quick Look 603 David Lui, ARKit Engineering Dave Addey, ARKit Engineering 2018 Apple Inc. All rights reserved. Redistribution or public display not
More informationimessage Apps and Stickers, Part 2
App Frameworks #WWDC16 imessage Apps and Stickers, Part 2 Interactive Messages Session 224 Alex Carter Messages Engineer Stephen Lottermoser Messages Engineer 2016 Apple Inc. All rights reserved. Redistribution
More informationCS193p Spring 2010 Monday, April 12, 2010
CS193p Spring 2010 Announcements Axess! Make sure your grading option matches what you were approved for Sonali s Office Hours Changed Friday 11am to 1pm Thursday 10am to noon Gates B26B Any questions
More informationWhat s New in Cocoa for macos
Session #WWDC18 What s New in Cocoa for macos 209 Ali Ozer, Cocoa Frameworks Chris Dreessen, Cocoa Frameworks Jesse Donaldson, Cocoa Frameworks 2018 Apple Inc. All rights reserved. Redistribution or public
More informationStanford CS193p. Developing Applications for ios. Winter CS193p! Winter 2015
Stanford CS193p Developing Applications for ios Today Objective-C Compatibility Bridging Property List NSUserDefaults Demo: var program in CalculatorBrain Views Custom Drawing Demo FaceView Bridging Objective-C
More informationCustom Drawing & Animation. CS 442: Mobile App Development Michael Saelee
Custom Drawing & Animation CS 442: Mobile App Development Michael Saelee Frameworks - UIKit - Core Graphics / Quartz - Core Animation - OpenGL ES UIKit OpenGL ES Core Graphics Core Animation
More informationSeamless Linking to Your App
App Frameworks #WWDC15 Seamless Linking to Your App Session 509 Conrad Shultz Safari and WebKit Software Engineer Jonathan Grynspan Core Services Software Engineer 2015 Apple Inc. All rights reserved.
More informationThread Sanitizer and Static Analysis
Developer Tools #WWDC16 Thread Sanitizer and Static Analysis Help with finding bugs in your code Session 412 Anna Zaks Manager, Program Analysis Team Devin Coughlin Engineer, Program Analysis Team 2016
More informationCreating Great App Previews
Services #WWDC14 Creating Great App Previews Session 304 Paul Turner Sr. Operations Manager itunes Digital Supply Chain Engineering 2014 Apple Inc. All rights reserved. Redistribution or public display
More informationProfiling in Depth. Do you know where your code is? Session 412. Kris Markel Performance Tools Engineer Chad Woolf Performance Tools Engineer
Developer Tools #WWDC15 Profiling in Depth Do you know where your code is? Session 412 Kris Markel Performance Tools Engineer Chad Woolf Performance Tools Engineer 2015 Apple Inc. All rights reserved.
More informationCustom Drawing & Animation. CS 442: Mobile App Development Michael Saelee
Custom Drawing & Animation CS 442: Mobile App Development Michael Saelee 1 Frameworks - UIKit - Core Graphics / Quartz - Core Animation - OpenGL ES 2 UIKit OpenGL ES Core Graphics Core Animation
More informationITP 342 Mobile App Dev. Animation
ITP 342 Mobile App Dev Animation Core Animation Introduced in Mac OS X Leopard Uses animatable "layers" built on OpenGL UIKit supports Core Animation out of the box Every UIView has a CALayer behind it
More informationApp Extension Best Practices
App Frameworks #WWDC15 App Extension Best Practices Session 224 Sophia Teutschler UIKit Engineer Ian Baird CoreOS Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted
More informationIntroducing Swift Playgrounds
Developer Tools #WWDC16 Introducing Swift Playgrounds Exploring with Swift on ipad Session 408 Matt Patenaude Playgrounds Engineer Maxwell Swadling Playgrounds Engineer Jonathan Penn Playgrounds Engineer
More informationAdvanced Cocoa Text Tips and Tricks. Aki Inoue Cocoa Engineer
Advanced Cocoa Text Tips and Tricks Aki Inoue Cocoa Engineer 2 Introduction Only on Mac OS Diving deeper Understanding the layout process Getting comfortable with extending and customizing base functionalities
More informationWhat s New in ARKit 2
Session #WWDC18 What s New in ARKit 2 602 Arsalan Malik, ARKit Engineer Reinhard Klapfer, ARKit Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written
More informationGetting the Most Out of HealthKit
App Frameworks #WWDC16 Getting the Most Out of HealthKit What s new and best practices Session 209 Matthew Salesi ios Software Engineer Joefrey Kibuule ios Software Engineer 2016 Apple Inc. All rights
More informationWhat s New in Notifications
System Frameworks #WWDC15 What s New in Notifications Session 720 Michele Campeotto ios Notifications Gokul Thirumalai Apple Push Notification Service 2015 Apple Inc. All rights reserved. Redistribution
More informationStanford CS193p. Developing Applications for ios. Spring CS193p. Spring 2016
Stanford Developing Applications for ios Today Memory Management for Reference Types Controlling when things leave the heap Closure Capture Closures capture things into the heap too Extensions A simple,
More informationWhat s New in Core Image
Media #WWDC15 What s New in Core Image Session 510 David Hayward Engineering Manager Tony Chu Engineer Alexandre Naaman Lead Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display
More informationBuilding Apps with Dynamic Type
Session App Frameworks #WWDC17 Building Apps with Dynamic Type 245 Clare Kasemset, Software Engineering Manager Nandini Sundar, Software Engineer 2017 Apple Inc. All rights reserved. Redistribution or
More informationCross Platform Nearby Networking
Core OS #WWDC14 Cross Platform Nearby Networking Session 709 Demijan Klinc Software Engineer 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission
More informationDesigning Great Apple Watch Experiences
Design #WWDC16 Designing Great Apple Watch Experiences Session 804 Mike Stern User Experience Evangelist 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written
More informationUsing Grouped Notifications
#WWDC18 Using Grouped Notifications Session 711 Michele Campeotto, ios User Notifications 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission
More informationIntroducing Password AutoFill for Apps
Session App Frameworks #WWDC17 Introducing Password AutoFill for Apps Reducing friction for your users 206 Ricky Mondello, ios Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display
More informationWhat s New in CloudKit
System Frameworks #WWDC15 What s New in CloudKit Session 704 Olivier Bonnet icloud Client Eric Krugler icloud Server 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted
More informationAnnouncements. Lab 2 is due next Monday (Sept 25 th ) by 11:59 PM. Late policy is 10% of lab total per day late. So -7.5 points per day late for lab 2
Announcements Lab 2 is due next Monday (Sept 25 th ) by 11:59 PM Late policy is 10% of lab total per day late So -7.5 points per day late for lab 2 Labs 3 and 4 are posted on the course website Extensible
More informationIntroduction to Siri Shortcuts
#WWDC8 Introduction to Siri Shortcuts Session 2 Ari Weinstein, Siri Willem Mattelaer, Siri 208 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission
More informationEditing Media with AV Foundation
Editing Media with AV Foundation Overview and best practices Eric Lee iphone Engineering 2 What You ll Learn Why and when you should use AV Foundation editing Concepts underlying manipulation of timed-based
More informationOptimizing Swift Performance Session 409
Developer Tools #WWDC15 Optimizing Swift Performance Session 409 Nadav Rotem Manager, Swift Performance Team Michael Gottesman Engineer, Swift Performance Team Joe Grzywacz Engineer, Performance Tools
More informationLocalizing with Xcode 6
Tools #WWDC14 Localizing with Xcode 6 Best practices and new workflows Session 412 Zoltan Foley-Fisher Xcode Software Engineer! Chris Hanson Xcode Software Engineer 2014 Apple Inc. All rights reserved.
More informationStanford CS193p. Developing Applications for ios. Fall CS193p. Fall
Stanford Developing Applications for ios Today Miscellaneous Error Handling Any Other Interesting Classes Views Custom Drawing Demo: Draw a Playing Card enum Thrown Errors In Swift, methods can throw errors
More informationWhat s New in Core Location
Core OS What s New in Core Location Session 706 Stephen Rhee Engineering Manager 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple.
More informationROSE-HULMAN INSTITUTE OF TECHNOLOGY
Introduction to Working Model Welcome to Working Model! What is Working Model? It's an advanced 2-dimensional motion simulation package with sophisticated editing capabilities. It allows you to build and
More informationApple Watch Design Tips and Tricks
Design #WWDC15 Apple Watch Design Tips and Tricks Session 805 Mike Stern User Experience Evangelist Rachel Roth User Experience Evangelist 2015 Apple Inc. All rights reserved. Redistribution or public
More informationIntegrating Physics into a Modern Game Engine. Object Collision. Various types of collision for an object:
Integrating Physics into a Modern Game Engine Object Collision Various types of collision for an object: Sphere Bounding box Convex hull based on rendered model List of convex hull(s) based on special
More informationWhat s New in Core Data?
Session App Frameworks #WWDC17 What s New in Core? Persisting since 2004 210 Melissa Turner, Core Engineer Rishi Verma, Core Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display
More informationBuilding a Game with SceneKit
Graphics and Games #WWDC14 Building a Game with SceneKit Session 610 Amaury Balliet Software Engineer 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written
More informationFinding Bugs Using Xcode Runtime Tools
Session Developer Tools #WWDC17 Finding Bugs Using Xcode Runtime Tools 406 Kuba Mracek, Program Analysis Engineer Vedant Kumar, Compiler Engineer 2017 Apple Inc. All rights reserved. Redistribution or
More informationWhat s New in Foundation for Swift Session 207
App Frameworks #WWDC16 What s New in Foundation for Swift Session 207 Tony Parker Foundation, Apple Michael LeHew Foundation, Apple 2016 Apple Inc. All rights reserved. Redistribution or public display
More informationROSE-HULMAN INSTITUTE OF TECHNOLOGY
More Working Model Today we are going to look at even more features of Working Model. Specifically, we are going to 1) Learn how to add ropes and rods. 2) Learn how to connect object using joints and slots.
More informationViews. A view (i.e. UIView subclass) represents a rectangular area Defines a coordinate space
Views A view (i.e. UIView subclass) represents a rectangular area Defines a coordinate space Draws and handles events in that rectangle Hierarchical A view has only one superview - (UIView *)superview
More informationAdvanced Memory Analysis with Instruments. Daniel Delwood Performance Tools Engineer
Advanced Memory Analysis with Instruments Daniel Delwood Performance Tools Engineer 2 Memory Analysis What s the issue? Memory is critical to performance Limited resource Especially on iphone OS 3 4 Memory
More informationEvent Delivery: The Responder Chain
When you design your app, it s likely that you want to respond to events dynamically. For example, a touch can occur in many different objects onscreen, and you have to decide which object you want to
More informationEnabling Your App for CarPlay
Session App Frameworks #WWDC17 Enabling Your App for CarPlay 719 Albert Wan, CarPlay Engineering 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission
More informationWorking with Metal Overview
Graphics and Games #WWDC14 Working with Metal Overview Session 603 Jeremy Sandmel GPU Software 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission
More information