apple tv development

Post on 15-Apr-2017

68 Views

Category:

Software

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

in prac(ce

Apple TV development

Agenda• The Living Room Experience

• Focus-Driven Interface

• Top Shelf

• On-Demand Resources

• Developer tools

The Living Room Experience

Remote Controllers

Focus-Driven Interface

Focus-Driven Interface

• Focus Model

Focus-Driven Interface

• Focus Model

• Focus Engine

Focus-Driven Interface

• Focus Model

• Focus Engine

• Focus API • UIFocusGuide

UIFocusGuide

Focus-Driven Interface

• Focus Model

• Focus Engine

• Focus API • UIFocusGuide

• UIFocusEnvironment protocol

Let’s debug a real example!

Why Is This View Not Focusable?• The view’s canBecomeFocused method returns NO.

• The view’s hidden property has a value of YES.

• The view’s alpha property has a value of 0.

• The view’s user interac(on is disabled.

• The view is obscured by another view on top of it.

Top Shelf

• Dynamic Content

• Inset Banners

• Sec(on Content Row

TVTopShelfProvider

• Sta(c Content

On-Demand Resources

On-Demand Resources• Limita(ons in applica(on size

• Limited NSUserDefaults storage

• Tag your resources!

• Special tags • Ini(al Install tag

• Prefetch tag

Development and Resources

Development• Xcode

• tvOS simulator + virtual Siri Remote

• not recommended 🙁

• CocoaPods

• Framework Oriented Programming by Pedro Piñera (NSBudapest June)

Thanks for your a]en(on!Ques(ons?

Gergo Nemeth

@reden87

iOS developer @ Supercharge

gergo.nemeth@supercharge.io // www.supercharge.io

top related