Mastering UIKit on tvos

Size: px
Start display at page:

Download "Mastering UIKit on tvos"

Transcription

1 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 Apple.

2 Agenda

3 Agenda Event Handling

4 Agenda Event Handling Layered Images

5 Agenda Event Handling Layered Images Scrolling

6 Agenda Event Handling Layered Images Scrolling Text Input

7 Event Handling

8 Event Handling Best Practices

9 Event Handling Best Practices Navigation should rely on the focus engine

10 Event Handling Best Practices Navigation should rely on the focus engine Use gesture recognizers when possible

11 Event Handling Best Practices Navigation should rely on the focus engine Use gesture recognizers when possible Avoid gestures that can t be used on all input devices

12 Touches

13 Touches UITouch represents contact between the user s finger and the touch surface

14 Touches UITouch represents contact between the user s finger and the touch surface Just like the ios version

15 Touches UITouch represents contact between the user s finger and the touch surface Just like the ios version UITouchTypeIndirect

16 Touches UITouch represents contact between the user s finger and the touch surface Just like the ios version UITouchTypeIndirect Begins centered in the focused view

17 Touches UITouch represents contact between the user s finger and the touch surface Just like the ios version UITouchTypeIndirect Begins centered in the focused view No absolute coordinates on the touch surface

18 Presses

19 Presses UIPress represents the up or down state of a physical button

20 Presses UIPress represents the up or down state of a physical button May be pressure-sensitive

21 Presses UIPress represents the up or down state of a physical button May be pressure-sensitive UIGestureRecognizer

22 Presses UIPress represents the up or down state of a physical button May be pressure-sensitive UIGestureRecognizer UIPress events mimic UITouch events

23 Presses UIPress represents the up or down state of a physical button May be pressure-sensitive UIGestureRecognizer UIPress events mimic UITouch events func pressesbegan(_ presses: Set<UIPress>, with event: UIPressesEvent?) {} func presseschanged(_ presses: Set<UIPress>, with event: UIPressesEvent?) {} func pressesended(_ presses: Set<UIPress>, with event: UIPressesEvent?) {} func pressescancelled(_ presses: Set<UIPress>, with event: UIPressesEvent?) {}

24 Press Types An illustrated guide

25 Press Types An illustrated guide

26 Press Types An illustrated guide

27 Press Types An illustrated guide

28 Press Types UIPressTypeSelect An illustrated guide

29 Press Types UIPressTypeSelect An illustrated guide

30 Press Types UIPressTypeSelect An illustrated guide

31 Press Types UIPressTypeSelect An illustrated guide

32 Press Types An illustrated guide UIPressTypeSelect UIPressTypeMenu

33 Press Types An illustrated guide UIPressTypeSelect UIPressTypeMenu

34 Press Types An illustrated guide UIPressTypeSelect UIPressTypeMenu

35 Press Types An illustrated guide UIPressTypeSelect UIPressTypeMenu

36 Press Types An illustrated guide UIPressTypeSelect UIPressTypeMenu

37 Press Types An illustrated guide UIPressTypeSelect UIPressTypeMenu UIPressTypePlayPause

38 Press Types An illustrated guide UIPressTypeSelect UIPressTypeMenu UIPressTypePlayPause

39 Press Types An illustrated guide UIPressTypeSelect UIPressTypeMenu UIPressTypePlayPause

40 Press Types An illustrated guide UIPressTypeSelect UIPressTypeMenu UIPressTypePlayPause

41 Press Types An illustrated guide UIPressTypeUpArrow UIPressTypeDownArrow UIPressTypeLeftArrow UIPressTypeRightArrow

42 Press Types An illustrated guide UIPressTypeUpArrow UIPressTypeDownArrow UIPressTypeLeftArrow UIPressTypeRightArrow

43 Press Types An illustrated guide UIPressTypeUpArrow UIPressTypeDownArrow UIPressTypeLeftArrow UIPressTypeRightArrow

44 Press Types An illustrated guide UIPressTypeUpArrow UIPressTypeDownArrow UIPressTypeLeftArrow UIPressTypeRightArrow

45 Press Types An illustrated guide UIPressTypeUpArrow UIPressTypeDownArrow UIPressTypeLeftArrow UIPressTypeRightArrow

46 Press Types An illustrated guide UIPressTypeUpArrow UIPressTypeDownArrow UIPressTypeLeftArrow UIPressTypeRightArrow

47 // Tap on Play-Pause button. let playpausetap = UITapGestureRecognizer(target: self, action: #selector(myclass.handleplaypause(_:))) playpausetap.allowedpresstypes = [ UIPressType.playPause.rawValue ] // Long-press on Select button. let selectlongpress = UILongPressGestureRecognizer(target: self, action: #selector(myclass.handleselectlongpress(_:))) selectlongpress.allowedpresstypes = [ UIPressType.select.rawValue ] // Double-tap on Select button. let selectdoubletap = UITapGestureRecognizer(target: self, action: #selector(myclass.handleselectdoubletap(_:))) selectdoubletap.allowedpresstypes = [ UIPressType.select.rawValue ] selectdoubletap.numberoftapsrequired = 2

48 The Menu Button

49 The Menu Button Users must be able to exit your app using the Menu button

50 The Menu Button Users must be able to exit your app using the Menu button This is a requirement that App Review specifically looks for

51 The Menu Button Users must be able to exit your app using the Menu button This is a requirement that App Review specifically looks for The event must reach UIApplication pressesended:withevent: in order for the app to exit

52 Custom Menu Button Handling

53 Custom Menu Button Handling Remove the gesture from its view

54 Custom Menu Button Handling Remove the gesture from its view Disable the gesture

55 Custom Menu Button Handling Remove the gesture from its view Disable the gesture Implement the gesture delegate method gesturerecognizershouldbegin

56 Custom Menu Button Handling Remove the gesture from its view Disable the gesture Implement the gesture delegate method gesturerecognizershouldbegin In pressesended call super if you re not going to handle the event

57 Custom Menu Button Handling Remove the gesture from its view Disable the gesture Implement the gesture delegate method gesturerecognizershouldbegin In pressesended call super if you re not going to handle the event GCEventViewController and controlleruserinteractionenabled

58 Layered Images

59 Layered Images

60 Layered Images

61 Layered Images Specific to tvos

62 Layered Images Specific to tvos Can have up to five layers

63 Layered Images Specific to tvos Can have up to five layers Required for app icons

64 Layered Images Specific to tvos Can have up to five layers Required for app icons Interactive

65 Layered Images Specific to tvos Can have up to five layers Required for app icons Interactive Animated

66 Interactivity with Layered Images

67 Interactivity with Layered Images Images are usually not interactive controls themselves, but components of larger controls

68 Interactivity with Layered Images Images are usually not interactive controls themselves, but components of larger controls The image view itself doesn t need to be focused to get the floating appearance

69 Interactivity with Layered Images Images are usually not interactive controls themselves, but components of larger controls The image view itself doesn t need to be focused to get the floating appearance imageview.adjustsimagewhenancestorfocused = true

70 Interactivity with Layered Images Images are usually not interactive controls themselves, but components of larger controls The image view itself doesn t need to be focused to get the floating appearance imageview.adjustsimagewhenancestorfocused = true The image view can show a pressed-in state

71 Interactivity with Layered Images Images are usually not interactive controls themselves, but components of larger controls The image view itself doesn t need to be focused to get the floating appearance imageview.adjustsimagewhenancestorfocused = true The image view can show a pressed-in state imageview.ishighlighted = pressed? true : false

72 Interactivity with Layered Images Images are usually not interactive controls themselves, but components of larger controls The image view itself doesn t need to be focused to get the floating appearance imageview.adjustsimagewhenancestorfocused = true The image view can show a pressed-in state imageview.ishighlighted = pressed? true : false Two common use cases that are covered for you:

73 Interactivity with Layered Images Images are usually not interactive controls themselves, but components of larger controls The image view itself doesn t need to be focused to get the floating appearance imageview.adjustsimagewhenancestorfocused = true The image view can show a pressed-in state imageview.ishighlighted = pressed? true : false Two common use cases that are covered for you: Images inside UICollectionViewCells

74 Interactivity with Layered Images Images are usually not interactive controls themselves, but components of larger controls The image view itself doesn t need to be focused to get the floating appearance imageview.adjustsimagewhenancestorfocused = true The image view can show a pressed-in state imageview.ishighlighted = pressed? true : false Two common use cases that are covered for you: Images inside UICollectionViewCells The imageview within a custom UIButton

75 Animations with Layered Images

76 Animations with Layered Images When an image enlarges, you can rearrange nearby views using Auto Layout

77 Animations with Layered Images When an image enlarges, you can rearrange nearby views using Auto Layout Use the layout guide focusedframeguide to create a constraint

78 Animations with Layered Images When an image enlarges, you can rearrange nearby views using Auto Layout Use the layout guide focusedframeguide to create a constraint

79 Animations with Layered Images When an image enlarges, you can rearrange nearby views using Auto Layout Use the layout guide focusedframeguide to create a constraint

80 Animations with Layered Images When an image enlarges, you can rearrange nearby views using Auto Layout Use the layout guide focusedframeguide to create a constraint

81 Animations with Layered Images When an image enlarges, you can rearrange nearby views using Auto Layout Use the layout guide focusedframeguide to create a constraint

82 Animations with Layered Images When an image enlarges, you can rearrange nearby views using Auto Layout Use the layout guide focusedframeguide to create a constraint Use focus context methods to coordinate animations correctly

83 Demo Interactivity and animation for layered images Randy Becker

84 Scrolling

85 Scroll Offset Selection

86 Scroll Offset Selection Usually not doing direct manipulation

87 Scroll Offset Selection Usually not doing direct manipulation The user manipulates focus, and the focus engine chooses a scroll offset

88 Scroll Offset Selection Usually not doing direct manipulation The user manipulates focus, and the focus engine chooses a scroll offset UIScrollViewDelegate can override the automatic scroll offset

89 Scroll Offset Selection Usually not doing direct manipulation The user manipulates focus, and the focus engine chooses a scroll offset UIScrollViewDelegate can override the automatic scroll offset func scrollviewwillenddragging(_ scrollview: UIScrollView, withvelocity velocity: CGPoint, targetcontentoffset: UnsafeMutablePointer<CGPoint>) { let myoffset = CGPoint(x: 42.0, y: 0) // Do your own calculations here. targetcontentoffset.initialize(with: myoffset) }

90 Direct Manipulation

91 Direct Manipulation It is possible to do direct manipulation if the situation calls for it

92 Direct Manipulation It is possible to do direct manipulation if the situation calls for it Reconfigure pan gesture recognizer on scroll view to recognize indirect touches

93 Direct Manipulation It is possible to do direct manipulation if the situation calls for it Reconfigure pan gesture recognizer on scroll view to recognize indirect touches Enable the directional press gesture

94 Direct Manipulation It is possible to do direct manipulation if the situation calls for it Reconfigure pan gesture recognizer on scroll view to recognize indirect touches Enable the directional press gesture scrollview.pangesturerecognizer.allowedtouchtypes = [ UITouchType.indirect.rawValue ] scrollview.directionalpressgesturerecognizer.isenabled = true

95 Demo Focus and direction manipulation Kevin Hiscott

96 Text Input

97 The System Keyboard

98 The System Keyboard The system standard keyboard is the only way to get certain text input features

99 The System Keyboard The system standard keyboard is the only way to get certain text input features Dictation

100 The System Keyboard The system standard keyboard is the only way to get certain text input features Dictation Bluetooth keyboards

101 The System Keyboard The system standard keyboard is the only way to get certain text input features Dictation Bluetooth keyboards Apple TV Remote app

102 The System Keyboard The system standard keyboard is the only way to get certain text input features Dictation Bluetooth keyboards Apple TV Remote app Localization

103 The System Keyboard The system standard keyboard is the only way to get certain text input features Dictation Bluetooth keyboards Apple TV Remote app Localization Automatic grid or linear layout based on input device

104 The System Keyboard The system standard keyboard is the only way to get certain text input features Dictation Bluetooth keyboards Apple TV Remote app Localization Automatic grid or linear layout based on input device Don t try to create your own keyboard, or your users will miss out on these features

105 Keyboard Appearance

106 Keyboard Appearance Adding custom UI to the keyboard is possible

107 Keyboard Appearance Adding custom UI to the keyboard is possible Use inputaccessoryview or inputaccessoryviewcontroller

108 Keyboard Appearance Adding custom UI to the keyboard is possible Use inputaccessoryview or inputaccessoryviewcontroller UITextField appearance no longer dictated by keyboardappearance

109

110 Search Controller

111 Search Controller UISearchController

112 Search Controller UISearchController Keyboard and search results visible at the same time

113 Search Controller UISearchController Keyboard and search results visible at the same time Automatically adapts to linear and grid keyboards

114 Search Controller UISearchController Keyboard and search results visible at the same time Automatically adapts to linear and grid keyboards Can be embedded within container view controllers

115 Search Controller UISearchController Keyboard and search results visible at the same time Automatically adapts to linear and grid keyboards Can be embedded within container view controllers UISearchContainerViewController

116 Search Controller UISearchController Keyboard and search results visible at the same time Automatically adapts to linear and grid keyboards Can be embedded within container view controllers UISearchContainerViewController Custom view controller for search results

117 // Embedding UISearchController class MySearchController: UIViewController, UISearchResultsUpdating { var searchcontroller: UISearchController! override func viewdidappear(_ animated: Bool) { super.viewdidappear(animated) if (searchcontroller == nil) { let results = UIViewController() searchcontroller = UISearchController(searchResultsController: results) searchcontroller.searchresultsupdater = self let container = UISearchContainerViewController (searchcontroller: searchcontroller) self.addchildviewcontroller(container) self.view.addsubview(container.view) container.didmove(toparentviewcontroller: self) } } }

118 // Embedding UISearchController class MySearchController: UIViewController, UISearchResultsUpdating { var searchcontroller: UISearchController! override func viewdidappear(_ animated: Bool) { super.viewdidappear(animated) if (searchcontroller == nil) { let results = UIViewController() searchcontroller = UISearchController(searchResultsController: results) searchcontroller.searchresultsupdater = self let container = UISearchContainerViewController (searchcontroller: searchcontroller) self.addchildviewcontroller(container) self.view.addsubview(container.view) container.didmove(toparentviewcontroller: self) } } }

119 // Embedding UISearchController class MySearchController: UIViewController, UISearchResultsUpdating { var searchcontroller: UISearchController! override func viewdidappear(_ animated: Bool) { super.viewdidappear(animated) if (searchcontroller == nil) { let results = UIViewController() searchcontroller = UISearchController(searchResultsController: results) searchcontroller.searchresultsupdater = self let container = UISearchContainerViewController (searchcontroller: searchcontroller) self.addchildviewcontroller(container) self.view.addsubview(container.view) container.didmove(toparentviewcontroller: self) } } }

120 // Embedding UISearchController class MySearchController: UIViewController, UISearchResultsUpdating { var searchcontroller: UISearchController! override func viewdidappear(_ animated: Bool) { super.viewdidappear(animated) if (searchcontroller == nil) { let results = UIViewController() searchcontroller = UISearchController(searchResultsController: results) searchcontroller.searchresultsupdater = self let container = UISearchContainerViewController (searchcontroller: searchcontroller) self.addchildviewcontroller(container) self.view.addsubview(container.view) container.didmove(toparentviewcontroller: self) } } }

121 // Embedding UISearchController class MySearchController: UIViewController, UISearchResultsUpdating { var searchcontroller: UISearchController! override func viewdidappear(_ animated: Bool) { super.viewdidappear(animated) if (searchcontroller == nil) { let results = UIViewController() searchcontroller = UISearchController(searchResultsController: results) searchcontroller.searchresultsupdater = self let container = UISearchContainerViewController (searchcontroller: searchcontroller) self.addchildviewcontroller(container) self.view.addsubview(container.view) container.didmove(toparentviewcontroller: self) } } }

122 // Embedding UISearchController class MySearchController: UIViewController, UISearchResultsUpdating { var searchcontroller: UISearchController! override func viewdidappear(_ animated: Bool) { super.viewdidappear(animated) if (searchcontroller == nil) { let results = UIViewController() searchcontroller = UISearchController(searchResultsController: results) searchcontroller.searchresultsupdater = self let container = UISearchContainerViewController (searchcontroller: searchcontroller) self.addchildviewcontroller(container) self.view.addsubview(container.view) container.didmove(toparentviewcontroller: self) } } }

123 Summary

124 Summary Be careful with custom Menu button handling

125 Summary Be careful with custom Menu button handling Use layout guides and coordinated animations for great layered images

126 Summary Be careful with custom Menu button handling Use layout guides and coordinated animations for great layered images If you need direct manipulation, use the existing UIScrollView gestures

127 Summary Be careful with custom Menu button handling Use layout guides and coordinated animations for great layered images If you need direct manipulation, use the existing UIScrollView gestures Use the system standard keyboard for text input

128 More Information developer.apple.com/wwdc16/210

129 Related Sessions What s New in tvos Presidio Tuesday 3:00PM Focus Interaction on tvos Mission Wednesday 4:00PM

130 Labs tvos Lab Frameworks Lab D Wednesday 2:00PM tvos Lab Frameworks Lab D Thursday 9:00AM

131

Advanced Scrollviews and Touch Handling Techniques

Advanced 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 information

Enhancing your apps for the next dimension of touch

Enhancing 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 information

Leveraging Touch Input on ios

Leveraging 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 information

Modern User Interaction on ios

Modern 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 information

Implementing UI Designs in Interface Builder

Implementing 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 information

Mastering Drag and Drop

Mastering 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 information

New UIKit Support for International User Interfaces

New 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 information

Quick Interaction Techniques for watchos

Quick 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 information

What s New in tvos #WWDC16. App Frameworks. Session 206. Hans Kim tvos Engineer

What 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 information

Building Watch Apps #WWDC15. Featured. Session 108. Neil Desai watchos Engineer

Building 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 information

Event Delivery: The Responder Chain

Event 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 information

Extending Your Apps with SiriKit

Extending 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 information

What s New in tvos 12

What 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 information

Monetize and Promote Your App with iad

Monetize 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 information

What s New in watchos

What s New in watchos Session App Frameworks #WWDC17 What s New in watchos 205 Ian Parks, watchos Engineering 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

Using and Extending the Xcode Source Editor

Using 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 information

Data Delivery with Drag and Drop

Data 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 information

Media and Gaming Accessibility

Media 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 information

What s New in Xcode App Signing

What 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 information

Accessibility on ios. Developing for everyone. Frameworks #WWDC14. Session 210 Clare Kasemset ios Accessibility

Accessibility 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 information

What s New in imessage Apps

What 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 information

imessage Apps and Stickers, Part 2

imessage 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 information

Introducing Password AutoFill for Apps

Introducing 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 information

Mysteries of Auto Layout, Part 1

Mysteries 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 information

lecture 10 UI/UX and Programmatic Design cs : spring 2018

lecture 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 information

What s New in SpriteKit

What 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 information

Cocoa Touch Best Practices

Cocoa 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 information

View Controller Advancements for ios8

View 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 information

What's New in UIKit Dynamics and Visual Effects Session 229

What's New in UIKit Dynamics and Visual Effects Session 229 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

More information

Introducing the Modern WebKit API

Introducing 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 information

Managing Documents In Your ios Apps

Managing Documents In Your ios Apps Session #WWDC18 Managing Documents In Your ios Apps 216 Brandon Tennant, Software Engineer Thomas Deniau, Software Engineer Rony Fadel, Software Engineer 2018 Apple Inc. All rights reserved. Redistribution

More information

Lecture 8 Demo Code: Cassini Multithreading

Lecture 8 Demo Code: Cassini Multithreading Lecture 8 Demo Code: Cassini Multithreading Objective Included below is the source code for the demo in lecture. It is provided under the same Creative Commons licensing as the rest of CS193p s course

More information

WatchKit In-Depth, Part 2

WatchKit 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 information

Building Apps with Dynamic Type

Building 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 information

ios Accessibility Developing for everyone Session 201 Ian Fisch ios Accessibility

ios 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 information

Introduction to Siri Shortcuts

Introduction 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 information

Advanced Notifications

Advanced Notifications System Frameworks #WWDC16 Advanced Notifications Session 708 Michele Campeotto ios Notifications 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

App Extension Best Practices

App 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 information

Designing Great Apple Watch Experiences

Designing 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 information

Touch Bar Fundamentals

Touch Bar Fundamentals Session App Frameworks #WWDC17 Touch Bar Fundamentals 211 Chris Dreessen John Tegtmeyer 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

CarPlay Audio and Navigation Apps

CarPlay Audio and Navigation Apps #WWDC18 CarPlay Audio and Navigation Apps Tunes and turns Jonathan Hersh, ios Car Experience Albert Wan, ios Car Experience Mike Knippers, ios Car Experience 2018 Apple Inc. All rights reserved. Redistribution

More information

Improving your Existing Apps with Swift

Improving 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 information

Designing for Apple Watch

Designing 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 information

Creating Content with iad JS

Creating 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 information

Apple Watch Design Tips and Tricks

Apple 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 information

Seamless Linking to Your App

Seamless 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 information

Announcements. Today s Topics

Announcements. Today s Topics Announcements Lab 2 is due tonight 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 Networking Platform

More information

Enabling Your App for CarPlay

Enabling 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 information

Automatic Strong Passwords and Security Code AutoFill

Automatic Strong Passwords and Security Code AutoFill Session #WWDC18 Automatic Strong Passwords and Security Code AutoFill 204 Chelsea Pugh, ios Engineer Reza Abbasian, ios Engineer Harris Papadopoulos, ios Engineer 2018 Apple Inc. All rights reserved. Redistribution

More information

Introducing Swift Playgrounds

Introducing 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 information

What s New in MapKit. App Frameworks #WWDC17. Fredrik Olsson

What 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 information

What s New in NSCollectionView Session 225

What 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 information

Building Faster in Xcode

Building Faster in Xcode #WWDC18 Building Faster in Xcode Session 408 David Owens, Xcode Engineer Jordan Rose, Swift Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Accessibility on OS X

Accessibility 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 information

Getting the Most Out of HealthKit

Getting 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 information

Thread Sanitizer and Static Analysis

Thread 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 information

CSC 581: Mobile App Development Spring 2018

CSC 581: Mobile App Development Spring 2018 CSC 581: Mobile App Development Spring 2018 Unit 2: Introduciton to the UIKit UIKit, UIViews UIControl subclasses 1 UIKit the UIKit is a code framework for building mobile apps the foundational class for

More information

Advances in AVFoundation Playback

Advances in AVFoundation Playback Media #WWDC16 Advances in AVFoundation Playback Waiting, looping, switching, widening, optimizing Session 503 Sam Bushell Media Systems Architect 2016 Apple Inc. All rights reserved. Redistribution or

More information

What s New in SiriKit

What s New in SiriKit Session App Frameworks #WWDC17 What s New in SiriKit 214 Sirisha Yerroju, SiriKit Engineer Tin Tran, SiriKit Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

Using the Microsoft Remote Desktop on non-windows devices

Using the Microsoft Remote Desktop on non-windows devices Using the Microsoft Remote Desktop on non-windows devices You can use the free Microsoft Remote Desktop Client to connect to the DGLPM Server from virtually any Apple Mac, iphone, ipad, or Android device

More information

Building Visually Rich User Experiences

Building 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 information

Creating Complications with ClockKit Session 209

Creating 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 information

EXERCISES RELATED TO ios PROGRAMMING

EXERCISES RELATED TO ios PROGRAMMING EXERCISES RELATED TO ios PROGRAMMING Kari Laitinen http://www.naturalprogramming.com 2017-08-30 File created. 2017-09-21 Last modification. 1 Kari Laitinen EXERCISES WITH PROGRAM Animals.swift With these

More information

Building for Voice with Siri Shortcuts

Building for Voice with Siri Shortcuts #WWDC18 Building for Voice with Siri Shortcuts Session 214 Amit Jain, Siri Ayaka Nonaka, Siri 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Writing Energy Efficient Apps

Writing Energy Efficient Apps Session App Frameworks #WWDC17 Writing Energy Efficient Apps 238 Daniel Schucker, Software Power Engineer Prajakta Karandikar, Software Power Engineer 2017 Apple Inc. All rights reserved. Redistribution

More information

Creating Great App Previews

Creating 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 information

Mobile Application Programing: ios. Messaging

Mobile Application Programing: ios. Messaging Mobile Application Programing: ios Messaging Application Model View Controller (MVC) Application Controller User Action Update View Notify Update Model Messaging Controller User Action Update Notify Update

More information

ITP 342 Mobile App Dev. Collection View

ITP 342 Mobile App Dev. Collection View ITP 342 Mobile App Dev Collection View Collection View A collection view manages an ordered collection of items and presents them in a customizable layout. A collection view: Can contain optional views

More information

Announcements. Today s Topics

Announcements. Today s Topics Announcements Lab 4 is due on Monday by 11:59 PM Special Guest Lecture next Wednesday Nathan Gitter, former Head TA of 438 He is currently featured on the front page of the ios App Store (Monday Oct 15

More information

Lifespan Guide for installing and using Citrix Receiver on your Mobile Device

Lifespan Guide for installing and using Citrix Receiver on your Mobile Device Lifespan Guide for installing and using Citrix Receiver on your Mobile Device About Remote Access with Citrix Receiver... 2 Installation Instructions for iphones:... 3 ios - Learning Gestures... 7 Installation

More information

App. Chapter 19 App. App (ViewController) App. Single View Application Single View Application View. (View Controller)

App. Chapter 19 App. App (ViewController) App. Single View Application Single View Application View. (View Controller) Chapter 19 App App (ViewController) App 19.1 App App Single View Application Single View Application View Controller View Controller Label Button Button (View Controller) 2 View Controller Utility Area

More information

What s New in Testing

What s New in Testing #WWDC18 What s New in Testing Session 403 Honza Dvorsky, Xcode Engineer Ethan Vaughan, Xcode Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Adopting Advanced Features of the New UI

Adopting 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 information

ios Configuration and APIs for Kiosk and Assessment Apps

ios Configuration and APIs for Kiosk and Assessment Apps Session Systems Framework #WWDC17 ios Configuration and APIs for Kiosk and Assessment Apps 716 Steve Hayman, Consulting Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display not

More information

Mastering 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 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 information

Introducing On Demand Resources

Introducing 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 information

HKUST. CSIT 6910A Report. iband - Musical Instrument App on Mobile Devices. Student: QIAN Li. Supervisor: Prof. David Rossiter

HKUST. CSIT 6910A Report. iband - Musical Instrument App on Mobile Devices. Student: QIAN Li. Supervisor: Prof. David Rossiter HKUST CSIT 6910A Report Student: Supervisor: Prof. David Rossiter Table of Contents I. Introduction 1 1.1 Overview 1 1.2 Objective 1 II. Preparation 2 2.1 ios SDK & Xcode IDE 2 2.2 Wireless LAN Network

More information

ITP 342 Mobile App Dev. Connections

ITP 342 Mobile App Dev. Connections ITP 342 Mobile App Dev Connections User Interface Interactions First project displayed information to the user, but there was no interaction. We want the users of our app to touch UI components such as

More information

Core ML in Depth. System Frameworks #WWDC17. Krishna Sridhar, Core ML Zach Nation, Core ML

Core ML in Depth. System Frameworks #WWDC17. Krishna Sridhar, Core ML Zach Nation, Core ML System Frameworks #WWDC17 Core ML in Depth Krishna Sridhar, Core ML Zach Nation, Core ML 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

Stanford CS193p. Developing Applications for ios. Fall CS193p. Fall

Stanford CS193p. Developing Applications for ios. Fall CS193p. Fall Stanford Developing Applications for ios Today Drag and Drop Transferring information around within and between apps. EmojiArt Demo Drag and drop an image to get our EmojiArt masterpieces started. UITableView

More information

Social Pinboard: ios(swift) Application

Social Pinboard: ios(swift) Application Social Pinboard: ios(swift) Application Document Version 1.0.1 Date: 15 th May, 2015 2 [SOCIAL PINBOARD: APP DOCUMENTATION] Important Notes:... 5 AppDelegate Class Reference... 6 Tasks... 6 Instance Methods...

More information

Adapting to the New UI of OS X Yosemite

Adapting 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 information

Introducing SiriKit. Hey Siri, say hello to apps #WWDC16. App Frameworks. Session 217

Introducing SiriKit. Hey Siri, say hello to apps #WWDC16. App Frameworks. Session 217 App Frameworks #WWDC16 Introducing SiriKit Hey Siri, say hello to apps Session 217 Robby Walker SiriKit Engineering Brandon Newendorp SiriKit Engineering Corey Peterson SiriKit Design 2016 Apple Inc. All

More information

Localizing with Xcode 9

Localizing with Xcode 9 Session Developer Tools #WWDC17 Localizing with Xcode 9 401 Sara Radi, Software Engineer Aya Siblini, Software Engineer Chris Hanson, Software Engineer 2017 Apple Inc. All rights reserved. Redistribution

More information

Mobile Development - Lab 2

Mobile Development - Lab 2 Mobile Development - Lab 2 Objectives Illustrate the delegation mechanism through examples Use a simple Web service Show how to simply make a hybrid app Display data with a grid layout Delegation pattern

More information

Introducing the Photos Frameworks

Introducing the Photos Frameworks Media #WWDC14 Introducing the Photos Frameworks Session 511 Adam Swift ios Photos Frameworks 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Introductory ios Development

Introductory ios Development Introductory ios Development 152-164 Unit 5 - Multi-View Apps Quick Links & Text References What is a Delegate? What is a Protocol? Delegates, Protocols and TableViews Creating a Master-Detail App Modifying

More information

Advances in TVMLKit. App Frameworks #WWDC17. Trevor Cortez, Localization Engineer Parry Panesar, tvos Engineer Jeremy Foo, tvos Engineer

Advances in TVMLKit. App Frameworks #WWDC17. Trevor Cortez, Localization Engineer Parry Panesar, tvos Engineer Jeremy Foo, tvos Engineer Session App Frameworks #WWDC17 Advances in TVMLKit 202 Trevor Cortez, Localization Engineer Parry Panesar, tvos Engineer Jeremy Foo, tvos Engineer 2017 Apple Inc. All rights reserved. Redistribution or

More information

What s New in ARKit 2

What 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 information

New Ways to Work with Workouts

New Ways to Work with Workouts Session #WWDC18 New Ways to Work with Workouts 707 Niharika Bedekar, Fitness Software Engineer Karim Benhmida, Health Software Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display

More information

ios Application Development Lecture 5: Protocols, Extensions,TabBar an Scroll Views

ios Application Development Lecture 5: Protocols, Extensions,TabBar an Scroll Views ios Application Development Lecture 5: Protocols, Extensions,TabBar an Scroll Views Dr. Simon Völker & Philipp Wacker Media Computing Group RWTH Aachen University Winter Semester 2017/2018 http://hci.rwth-aachen.de/ios

More information

Using Grouped Notifications

Using 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 information

Mobile Application Programming. Controls

Mobile Application Programming. Controls Mobile Application Programming Controls Views UIView instances and subclasses Form a tree rooted at the window Have a backing store of pixels that are drawn seldomly, then composited to form the full user

More information

Advanced Debugging and the Address Sanitizer

Advanced 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 information

Optimizing Swift Performance Session 409

Optimizing 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 information

Integrating Apps and Content with AR Quick Look

Integrating 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 information

Stanford CS193p. Developing Applications for ios. Fall CS193p. Fall

Stanford CS193p. Developing Applications for ios. Fall CS193p. Fall Stanford Developing Applications for ios Today Emoji Art Demo continued UITextField Editable text input control Demo: Add a text field to Emoji Art Demo Emoji Art Make our Emoji Art scrollable/zoomable/centered

More information

JVC Remote Application

JVC Remote Application JVC Remote Application JVC KENWOOD Corporation JVC Remote Application Troubleshooting General Where can I find the JVC Remote App to install? My song title, artist and album name does not scroll. Screen

More information

Creating Audio Apps for watchos

Creating Audio Apps for watchos Session #WWDC18 Creating Audio Apps for watchos 504 Neil Desai, watchos Frameworks Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Gestures. Mobile Application Development in ios School of EECS Washington State University Instructor: Larry Holder

Gestures. Mobile Application Development in ios School of EECS Washington State University Instructor: Larry Holder Gestures Mobile Application Development in ios School of EECS Washington State University Instructor: Larry Holder Mobile Application Development in ios 1 Outline Gestures Gesture recognizers Gesture states

More information