Upgrade to Pro — share decks privately, control downloads, hide ads and more …

tvOS Perks and Pitfalls

tvOS Perks and Pitfalls

In this talk Axel will discuss the first steps in the new tvOS environment. Sometimes it feels like a warm iOS blanket, othertimes you get these weird error messages and of course you have to deal with the necessary UX changes.

By Axel Roest. Original slides: http://www.slideshare.net/axelroest/tvos-perks-and-pitfalls

Powered by http://xebia.com

do{iOS} conference

November 09, 2015
Tweet

More Decks by do{iOS} conference

Other Decks in Programming

Transcript

  1. Fun

  2. Twofold opportunities • iOS devs can reuse their knowledge •

    web devs can reuse their js+xml knowledge
  3. Twofold opportunities • iOS devs can reuse their knowledge •

    web devs can reuse their js+xml knowledge Shhhh! Please don’t tell your web friends this!
  4. diff iOS tvOS • No persistent storage ➔ iCloud only

    • 200 MB limit ➔ on-demand resources • Focus Engine • No specific iOS frameworks
  5. diff iOS tvOS • No persistent storage ➔ iCloud only

    • 200 MB limit ➔ on-demand resources • Focus Engine • No specific iOS frameworks – Contacts HealthKit CoreMotion Accounts
  6. diff iOS tvOS • No persistent storage ➔ iCloud only

    • 200 MB limit ➔ on-demand resources • Focus Engine • No specific iOS frameworks – Contacts HealthKit CoreMotion Accounts + TVServices TVMLKit
  7. WebKit Alternatives • Create your own layoutengine (NetNewsWire) • Hack

    it for your own personal use
 https://github.com/jvanakker/tvOSBrowser
  8. code is easy • Add a tvos target • Add

    new UIViewControllers • Run
  9. ux redesign • UX is a whole new ballgame •

    Rethink interaction • No touch screen: less typing • new layered icons
  10. ux redesign • UX is a whole new ballgame •

    Rethink interaction • No touch screen: less typing • new layered icons
  11. • Difference LSR and LCR files • Creating in Xcode:

    drag & export • create LCR file using layerutil, which converts LSR to LCR. • LCRs can be used within UIImageviews • unfortunately, no reverse version of layerutil yet
  12. Gotchas w.r.t. icons Large-AppIconScratch-.xcassets: The last image stack layer with

    content, "Back", must be a 
 fully opaque bitmap. The pixel at position (602, 475) has an alpha value of 26. Xcode compiler error: you need 3 icon layers! no transparency in back layer
  13. TVML app • Client-Server • Written in ‘TVJS’, a javascript

    framework • AppDelegate contains URL • start TVApplicationController • Use standard web techniques for 
 deployment, analytics, A/B testing etc.
  14. TVML • you can now totally change an app after

    you went through the app approval phase. • ideal for existing web based content • Tons of standard TVML templates for e.g. alerts, lists, photo stacks
  15. Remote Simulator remote works, but not really well (But you

    can connect the Siri remote to the simulator!)
  16. Really easy to test TVML app python server however (due

    to caching?): for each new js tweak you need to reload the app from Xcode. Killing it doesn’t seem to work
  17. No local storage (!) apart from NSUserDefaults ➔ iCloud KVS

    (< 1MB) and CloudKit ➔ On-Demand Resources