I must be missing something....
So far, all of the examples for the above appear to be in Swift. Are there any examples in Obj-C?
Thanks,
Dan Uff
I must be missing something....
So far, all of the examples for the above appear to be in Swift. Are there any examples in Obj-C?
Thanks,
Dan Uff
Well, I guess Apple loves their new Swift language (and it is really great) and wants to support it. It may be too much effort to make samples in both languages. I actually used my first ATV app to learn some Swift. On the other hand, it is not too hard to abstract to Obj-C from the Swift sample code.
Currently all of the tvOS code samples we have released are in Swift. But as bogo-sts suggested, the concepts are entirely translatable between the languages as you interact with the same APIs either way.
I really hope this is not the shape of things to come with the Apple platform.
I mean no offence, but I really don't regard Swift that highly and also don't get the big fuss about it. Sure, I am able to read swift script and grasp any concept portrayed in it to certain extent, as I think anyone with more than basic understanding about computer programming will be. Granted, there do also exist ample libraries in API documentation and guide material for developing in Objective-C. Nevertheless, the absence of ad hoc code examples and solutions to specific coding problems, written in it, does make us obj-C people feel like less than first-class citizens. In my view, obj-C, like anything based in the C programming language, is the real tool of champions.
Apple, please keep providing API documentation, sample code, and example solutions in Objective-C.
Apple, please keep providing API documentation, sample code, and example solutions in Objective-C.
+1