How to Create a tvOS / iOS Side Scroller – Part 11 – Using the same code to a Universal iOS Project
Read moreParticularly useful in this video is a block of code to run only if the device is tvOS. For example…. #if os(tvOS) print("Only run if tvOS") #endif
The tvOS App Template – Project Files
Read moreWe’ve added project files for Swift 2.2 (Xcode 7.3). The code in the video tutorials builds fine, but Xcode 7.3 will recommend an update for future issues . If you do the automatic fix, you’ll silence any yellow warnings. You can read about the minor changes between Swift 2.2 and 2.1 here (minor as…
tvOS Project 1 – Source Files
Read moreWe’ve added project files for Swift 2.2 (Xcode 7.3). The code in the video tutorials builds fine, but Xcode 7.3 will recommend an update for future issues . If you do the automatic fix, you’ll silence any yellow warnings. You can read about the minor changes between Swift 2.2 and 2.1 here (minor as…
How to Create a tvOS / iOS Side Scroller – Part 11 – Using the same code in a Universal iOS Project
Read moreParticularly useful in this video is a block of code to run only if the device is tvOS. For example…. #if os(tvOS) print("Only run if tvOS") #endif
tvOS / iOS Side Scroller – Project Files (End Session 1)
Read moreBelow you can download both the tvOS and iOS versions of the project.
Keyboard Project Files
Read moreIn Swift 2.2, the tvOS project does not need the observer for hiding the keyboard. So don’t include these two lines for tvOS… Â Â NSNotificationCenter.defaultCenter().addObserver(self, selector:Selector(“keyboardWillHide”), name: UIKeyboardWillHideNotification, object: nil) Â NSNotificationCenter.defaultCenter().removeObserver(UIKeyboardWillHideNotification)
Keyboard Project Files
Read moreIn Swift 2.2, the tvOS project does not need the observer for hiding the keyboard. So don’t include these two lines for tvOS… Â Â NSNotificationCenter.defaultCenter().addObserver(self, selector:Selector(“keyboardWillHide”), name: UIKeyboardWillHideNotification, object: nil) Â NSNotificationCenter.defaultCenter().removeObserver(UIKeyboardWillHideNotification)
