Home > Uncategorized > Hello World on #tvOS

Hello World on #tvOS

IMG_4989

Creating a Hello World app for TVOS is so easy it barely needs a blog post, but the basics are always easy. I just created a TVOS single view app in XCode, connected the Apple TV via USB-C, and ran. The icon appeared on the Apple TV, and it worked straight away.

If you want the code; for whatever reason – check it out here:

https://github.com/infiniteloopltd/helloworld-tvos

The tiny bit of code I added was;

   @IBAction func btnClicked(_ sender: UIButton) {

        lblHello.text = “Well hello there!”;

    }

    @IBOutlet weak var lblHello: UILabel!

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: